Permalink
Browse files

Dev : better fix #6309 : othercbox are not need, then hide in CSS

  • Loading branch information...
1 parent b4ffd76 commit 7465610473987160e656f3512b8bb613fd75120f @Shnoulle Shnoulle committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 qanda.php
View
2 qanda.php
@@ -2334,7 +2334,7 @@ function do_multiplechoice($ia)
}
$answer .= $startitem;
$answer .= $hiddenfield.'
- <input class="checkbox" type="checkbox" name="'.$myfname.'cbox" alt="'.$clang->gT('Other').'" id="answer'.$myfname.'cbox"';
+ <input class="checkbox" type="checkbox" name="'.$myfname.'cbox" alt="'.$clang->gT('Other').'" id="answer'.$myfname.'cbox" style="display:none"'; // othercbox can be not display, because only input text goes to database
if (isset($_SESSION[$myfname]) && trim($_SESSION[$myfname])!='')
{

3 comments on commit 7465610

@TMSWhite

This breaks array_filter, and is the source of complaints like this one - http://www.limesurvey.org/forum/design-issues/83961-other-options-within-multiple-choice-question-became-readonly-in-build-120725?lang=en#83961

I recommend reverting this.

Although this was meant as a better fix for #6309, I don't see how this helps.

@TMSWhite

bug report for this filed here - http://bugs.limesurvey.org/view.php?id=6467

@Shnoulle

Then a display:hidden, or adpat the javascript. This don't change Expression Manager, and css don't have to be changed.

Its' allway difficult to click on "other cbox", a lot of user complain of clicking on it and don't see change.

Link on the forum is another problem (javacripting input.text readonly).

Please sign in to comment.