Skip to content

Commit

Permalink
Fixed issue #5592: Wrong answer mapping for dual scale matrix in deta…
Browse files Browse the repository at this point in the history
…iled admin notification email

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12293 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c_schmitz committed Feb 1, 2012
1 parent ba230e2 commit 7bd6fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -1824,7 +1824,7 @@ function getExtendedAnswer($surveyid, $action, $fieldcode, $value, $format='')
case "H":
case "1":
$fieldtoselect = array('answer');
$condition = "qid = {$fields['qid']} AND code=".$value." AND language='".$s_lang."'";
$condition = "qid = {$fields['qid']} AND code=".$value." AND language='".$s_lang."' AND scale_id={$fields['scale_id']}";

$result = Answers::model()->findAllByAttributes(array('qid' => $fields['qid'], 'code' => $value, 'language' => $s_lang)) or die ("Couldn't get answer type F/H - getExtendedAnswer() in common_helper.php"); //Checked
foreach($result as $row)
Expand Down

0 comments on commit 7bd6fc5

Please sign in to comment.