Skip to content

Commit

Permalink
Fix: Unable to select a group with a non-sequential order ID - Please…
Browse files Browse the repository at this point in the history
… note that Group order IDs are not necessarily sequential

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12069 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 15, 2012
1 parent 7d1a1b6 commit 9a00632
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -1272,10 +1272,9 @@ private function setVariableAndTokenMappingsForExpressionManager($surveyid,$forc
);

$this->gseq2info = $this->getGroupInfoForEM($surveyid,$_SESSION['LEMlang']);
for ($i=0;$i<count($this->gseq2info);++$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']);
Expand Down

0 comments on commit 9a00632

Please sign in to comment.