Skip to content

Commit

Permalink
Fixed issue #05768: In List with Comment type, if set to mandatory, t…
Browse files Browse the repository at this point in the history
…he comment is also required

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12383 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
tmswhite committed Feb 7, 2012
1 parent c09096b commit 0d80706
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -4258,6 +4258,20 @@ function _ValidateQuestion($questionSeq)
}
$mandatoryTip .= $LEM->gT('Please rank all items').'.';
break;
case 'O': //LIST WITH COMMENT drop-down/radio-button list + textarea
$_count=0;
for ($i=0;$i<count($unansweredSQs);++$i)
{
if (preg_match("/comment$/",$unansweredSQs[$i])) {
continue;
}
++$_count;
}
if ($_count > 0)
{
$qmandViolation = true;
}
break;
default:
if (count($unansweredSQs) > 0)
{
Expand Down

0 comments on commit 0d80706

Please sign in to comment.