Merge branch 'MDL-30526' of git://git.luns.net.uk/moodle

This commit is contained in:
Sam Hemelryk
2011-12-01 12:44:09 +13:00
+2 -1
View File
@@ -49,10 +49,11 @@ class mod_choice_mod_form extends moodleform_mod {
$repeateloptions = array();
$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_CLEAN);
$mform->setType('option', PARAM_CLEANHTML);
$mform->setType('optionid', PARAM_INT);