Skip to content

Commit

Permalink
fixed bug #3241: Mandatory requirement not working on Array (Multi-fl…
Browse files Browse the repository at this point in the history
…exbile) (Number) with Checkbox layout is 1

dev note; this is only partially fixed, see notes on bug

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@7052 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jun 10, 2009
1 parent 451e8d3 commit fdadac1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions qanda.php
Expand Up @@ -358,7 +358,6 @@ function setman_multiflex($ia)
}

$qidattributes=getQuestionAttributes($ia[0]);

while ($ansrow = $ansresult->FetchRow())
{
//Don't add to mandatory list if the row is filtered out with the array_filter option
Expand All @@ -372,7 +371,12 @@ function setman_multiflex($ia)
}
else
{
//This one's not hidden. so add it to the mandatory list
//This one's not hidden. so add it to the mandatory list
foreach($lset as $ls)
{
$mandatorys[]=$ia[1].$ansrow['code']."_".$ls['code'];
$mandatoryfns[]=$ia[1];
}
}
} else { //There is no array_filter option, so we should definitely add to the mandatory list here!
foreach($lset as $ls)
Expand Down Expand Up @@ -3644,7 +3648,8 @@ function do_multiplenumeric($ia)
}
$answer .= $question_tip.'<ul class="'.$label_width.$class_computed."\">\n".$answer_main."</ul>\n".$answer_computed;
}

$answer_computed = isset($answer_computed)?$answer_computed:'';
$answer .= $answer_computed;
//just added these here so its easy to change in one place
$errorClass = 'tip error';
$goodClass = ' tip good';
Expand Down

0 comments on commit fdadac1

Please sign in to comment.