View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|14197||Bug reports||[All Projects] Survey taking||public||2018-10-30 14:32||2018-11-14 00:54|
|Target Version||Fixed in Version|
|Summary||14197: Randomization of groups not working|
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.|
|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 & DB-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|
Randomization_Group_Test.lss (95,496 bytes)
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:
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 :)
|2018-10-30 14:32||drrcraig||New Issue|
|2018-10-30 14:32||drrcraig||File Added: Randomization_Group_Test.lss|
|2018-11-05 15:21||dominikvitt||Relationship added||related to 14139|
|2018-11-05 15:22||dominikvitt||Assigned To||=> ollehar|
|2018-11-05 15:22||dominikvitt||Status||new => assigned|
|2018-11-05 15:25||dominikvitt||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|