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@11216 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Oct 19, 2011
1 parent a878a3d commit 135df41
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7691,6 +7691,14 @@ 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 135df41

Please sign in to comment.