Relationship Graph
View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
14197 | Bug reports | Survey taking | public | 2018-10-30 14:32 | 2021-03-10 20:46 |
Reporter | drrcraig | Assigned To | ollehar | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | no change required | ||
Product Version | 3.13.x | ||||
Summary | 14197: Randomization of groups not working | ||||
Description | The Randomize Group is not working for me, I am able to randomize the questions within the groups but not the groups themselves. | ||||
Steps To Reproduce | I've attached an lss file that I found on the community server that was to demonstrate randomization of groups that will not work on my system - I've also seen that this was commented on there. https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/113354-display-groups-in-random-order-not-questions-within-groups I put the same name in the Randomize Groups for the groups I wish to be presented in random order but nothing changes (I get the order they are in the survey), presentation is set as group by group, same for question by question. If I change it to All at once it will randomize but not really an option for us given the size of the survey. Tried different themes, not luck. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | Version 3.15.1+181017 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | tested on firefox, chrome, safari, and edge | ||||
Database type & version | Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - | ||||
Server OS (if known) | windows server 2008R2 | ||||
Webserver software & version (if known) | iis7 Build 7601 SP1 | ||||
PHP Version | 7.1.10 | ||||
Currently, group randomization feature works only when using group by group mode, but it is planned for development of other modes in the future. Are you a Premium Package user? |
|
I have found that commenting out line 851 of em_manager_helper.php fixes this, groups are randomized once again. That line seems to reset the group order to what is set in the DB. Caveat: I'm just getting familiar with the code, and even though I can't see issues with that 'fix', I'm not sure if it's fully harmless. |
|
Failed to mention it in my previous comment: in the version I'm working with the line in question is: $LEM->setVariableAndTokenMappingsForExpressionManager($iSurveyId) |
|
Sounds like an important function. :) I would need to look into detail what it does (and does wrong). |
|
Oh, it IS important, but the place I've commented it out in seems to be a simple getter, which should not reinitialize the whole EM session :) |
|
You're using an outdated version of LimeSurvey. Please update to the latest version and check if the bug can still be reproduced. Thank you. |
|
The issue has been resolved in my instance of LimeSurvey. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-10-30 14:32 | drrcraig | New Issue | |
2018-10-30 14:32 | drrcraig | File Added: Randomization_Group_Test.lss | |
2018-11-05 14:08 | Flups22 | Issue Monitored: Flups22 | |
2018-11-05 15:21 |
|
Relationship added | related to 14139 |
2018-11-05 15:22 |
|
Assigned To | => ollehar |
2018-11-05 15:22 |
|
Status | new => assigned |
2018-11-05 15:25 |
|
Note Added: 49540 | |
2018-11-06 09:48 | DatalytixDeveloper | Note Added: 49545 | |
2018-11-06 10:23 | DatalytixDeveloper | Note Added: 49546 | |
2018-11-06 12:39 | ollehar | Note Added: 49553 | |
2018-11-06 14:22 | DatalytixDeveloper | Note Added: 49554 | |
2018-11-14 00:54 | jelo | Relationship added | related to 14116 |
2021-03-10 16:56 | ollehar | Status | assigned => feedback |
2021-03-10 16:56 | ollehar | Note Added: 63027 | |
2021-03-10 18:19 | drrcraig | Note Added: 63128 | |
2021-03-10 18:19 | drrcraig | Status | feedback => assigned |
2021-03-10 20:46 | ollehar | Status | assigned => closed |
2021-03-10 20:46 | ollehar | Resolution | open => no change required |
2021-08-02 18:29 | guest | Bug heat | 8 => 10 |