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_dev@12291 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c_schmitz committed Feb 1, 2012
1 parent 6890381 commit c933733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common_functions.php
Expand Up @@ -1929,7 +1929,7 @@ function getextendedanswer($fieldcode, $value, $format='', $dateformatphp='d.m.Y
case "F":
case "H":
case "1":
$query = "SELECT answer FROM ".db_table_name('answers')." WHERE qid={$fields['qid']} AND code='".$connect->escape($value)."' AND language='".$s_lang."'";
$query = "SELECT answer FROM ".db_table_name('answers')." WHERE qid={$fields['qid']} AND code='".$connect->escape($value)."' AND scale_id={$fields['scale_id']} AND language='".$s_lang."'";
$result = db_execute_assoc($query) or safe_die ("Couldn't get answer type F/H - getextendedanswer() in common.php"); //Checked
while($row=$result->FetchRow())
{
Expand Down

0 comments on commit c933733

Please sign in to comment.