Merge branch 'MDL-38736-master' of git://github.com/danpoltawski/moodle
authorDamyon Wiese <damyon@moodle.com>
Wed, 27 Mar 2013 04:17:47 +0000 (12:17 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 27 Mar 2013 04:17:47 +0000 (12:17 +0800)
mod/choice/mod_form.php

index 3a70036..7e63103 100644 (file)
@@ -50,6 +50,7 @@ class mod_choice_mod_form extends moodleform_mod {
         $repeateloptions['limit']['default'] = 0;
         $repeateloptions['limit']['disabledif'] = array('limitanswers', 'eq', 0);
         $repeateloptions['limit']['rule'] = 'numeric';
+        $repeateloptions['limit']['type'] = PARAM_INT;
 
         $repeateloptions['option']['helpbutton'] = array('choiceoptions', 'choice');
         $mform->setType('option', PARAM_CLEANHTML);