Skip to content

Commit

Permalink
Fixed issue #5466: "List (radio)" question displayed always as unansw…
Browse files Browse the repository at this point in the history
…ered when using question index and 'Other' option

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11217 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Oct 19, 2011
1 parent 48560e2 commit aba6298
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions application/helpers/common_helper.php
Expand Up @@ -6261,6 +6261,13 @@ function bCheckQuestionForAnswer($q, $aFieldnamesInfoInv)
if(!strstr($sField, 'comment') && isset($_SESSION[$sField]) && trim($_SESSION[$sField])!='')
return true;
return false;
case 'L': // List questions only need one answer (including the 'other' option)
foreach($aFieldnamesInfoInv[$q] as $sField)
{
if(isset($_SESSION[$sField]) && trim($_SESSION[$sField])!='')
return true;
}
return false;
case 'F':
case ':':
case ';':
Expand Down

0 comments on commit aba6298

Please sign in to comment.