MDL-30536 Choice - remove setType so that validation works when JS is disabled

This commit is contained in:
Dan Marsden
2011-12-08 10:36:48 +13:00
committed by Sam Hemelryk
parent b1d4c42ad6
commit 264ca6c58d
-1
View File
@@ -50,7 +50,6 @@ class mod_choice_mod_form extends moodleform_mod {
$repeateloptions['limit']['default'] = 0;
$repeateloptions['limit']['disabledif'] = array('limitanswers', 'eq', 0);
$repeateloptions['limit']['rule'] = 'numeric';
$mform->setType('limit', PARAM_INT);
$repeateloptions['option']['helpbutton'] = array('choiceoptions', 'choice');
$mform->setType('option', PARAM_CLEANHTML);