Skip to content

Commit

Permalink
MDL-30536 Choice - remove setType so that validation works when JS is…
Browse files Browse the repository at this point in the history
… disabled
  • Loading branch information
danmarsden authored and Sam Hemelryk committed Dec 7, 2011
1 parent b1d4c42 commit 264ca6c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mod/choice/mod_form.php
Expand Up @@ -50,7 +50,6 @@ function definition() {
$repeateloptions['limit']['default'] = 0; $repeateloptions['limit']['default'] = 0;
$repeateloptions['limit']['disabledif'] = array('limitanswers', 'eq', 0); $repeateloptions['limit']['disabledif'] = array('limitanswers', 'eq', 0);
$repeateloptions['limit']['rule'] = 'numeric'; $repeateloptions['limit']['rule'] = 'numeric';
$mform->setType('limit', PARAM_INT);


$repeateloptions['option']['helpbutton'] = array('choiceoptions', 'choice'); $repeateloptions['option']['helpbutton'] = array('choiceoptions', 'choice');
$mform->setType('option', PARAM_CLEANHTML); $mform->setType('option', PARAM_CLEANHTML);
Expand Down

0 comments on commit 264ca6c

Please sign in to comment.