View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
14197Bug reportsSurvey takingpublic2021-03-10 20:46
Reporterdrrcraig Assigned Toollehar  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version3.13.x 
Summary14197: 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.

TagsNo tags attached.
Attached Files
Bug heat10
Complete LimeSurvey version number (& build)Version 3.15.1+181017
I will donate to the project if issue is resolvedYes
Browsertested on firefox, chrome, safari, and edge
Database type & versionDatabase 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 Version7.1.10

Relationships

related to 14139 closedollehar Cannot get random questions within a group when using the "Question by question" format 
related to 14116 closeddominikvitt Random group order not working 

Users monitoring this issue

Flups22

Activities

dominikvitt

dominikvitt

2018-11-05 15:25

developer   ~49540

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?

DatalytixDeveloper

DatalytixDeveloper

2018-11-06 09:48

reporter   ~49545

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.

DatalytixDeveloper

DatalytixDeveloper

2018-11-06 10:23

reporter   ~49546

Failed to mention it in my previous comment: in the version I'm working with the line in question is:

$LEM->setVariableAndTokenMappingsForExpressionManager($iSurveyId)

ollehar

ollehar

2018-11-06 12:39

administrator   ~49553

Sounds like an important function. :) I would need to look into detail what it does (and does wrong).

DatalytixDeveloper

DatalytixDeveloper

2018-11-06 14:22

reporter   ~49554

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 :)

ollehar

ollehar

2021-03-10 16:56

administrator   ~63027

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.

drrcraig

drrcraig

2021-03-10 18:19

reporter   ~63128

The issue has been resolved in my instance of LimeSurvey.

Issue History

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 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
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