From 264ca6c58ddab464a5d2fffe06158e7514596e53 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 2 Dec 2011 21:16:21 +1300 Subject: [PATCH] MDL-30536 Choice - remove setType so that validation works when JS is disabled --- mod/choice/mod_form.php | 1 - 1 file changed, 1 deletion(-) diff --git a/mod/choice/mod_form.php b/mod/choice/mod_form.php index 1a7ef127ba4..afacc4a9a6a 100644 --- a/mod/choice/mod_form.php +++ b/mod/choice/mod_form.php @@ -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);