Skip to content

Commit

Permalink
Fixed issue #05943: exclusive option in multiple choice hide all othe…
Browse files Browse the repository at this point in the history
…r answer options

Dev Upon revisiting a question, sub-questions that should have been disabled were being hidden instead
  • Loading branch information
TMSWhite committed Jun 7, 2012
1 parent c86ca8a commit 27afbda
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -899,12 +899,26 @@ function return_array_filter_strings($ia, $aQuestionAttributes, $thissurvey, $an
}
else
{
$htmltbody2 .= " style='display: none'";
if (!isset($aQuestionAttributes['array_filter_style']) || $aQuestionAttributes['array_filter_style'] == '0')
{
$htmltbody2 .= " style='display: none'";
}
else
{
$htmltbody2 .= " disabled='disabled'";
}
}
}
else
{
$htmltbody2 .= " style='display: none'";
if (!isset($aQuestionAttributes['array_filter_style']) || $aQuestionAttributes['array_filter_style'] == '0')
{
$htmltbody2 .= " style='display: none'";
}
else
{
$htmltbody2 .= " disabled='disabled'";
}
}
}
$htmltbody2 .= ">\n";
Expand Down

0 comments on commit 27afbda

Please sign in to comment.