From 36a86c9f0a2a97c3f97fd81e57b9026808c990e9 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Fri, 20 Jan 2012 19:54:58 +0000 Subject: [PATCH] Fix: Unable to select a group with a non-sequential order ID - Please note that Group order IDs are not necessarily sequential git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12140 b72ed6b6-b9f8-46b5-92b4-906544132732 --- application/helpers/expressions/em_manager_helper.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/helpers/expressions/em_manager_helper.php b/application/helpers/expressions/em_manager_helper.php index 217a4f455d6..52a0c49552f 100644 --- a/application/helpers/expressions/em_manager_helper.php +++ b/application/helpers/expressions/em_manager_helper.php @@ -1335,10 +1335,9 @@ private function setVariableAndTokenMappingsForExpressionManager($surveyid,$forc ); $this->gseq2info = $this->getGroupInfoForEM($surveyid,$_SESSION['LEMlang']); - for ($i=0;$igseq2info);++$i) + foreach ($this->gseq2info as $aGroupInfo) { - $gseq = $this->gseq2info[$i]; - $this->groupId2groupSeq[$gseq['gid']] = $i; + $this->groupId2groupSeq[$aGroupInfo['gid']] = $aGroupInfo['group_order']; } $qattr = $this->getQuestionAttributesForEM($surveyid,NULL,$_SESSION['LEMlang']);