Permalink
Browse files

MDL-38736 mod_choice: fix missing param type

  • Loading branch information...
1 parent 373a8e0 commit 8bd1829310c25d4b0a6f0b4d32bc3241f5db87ae @danpoltawski danpoltawski committed Mar 27, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/choice/mod_form.php
View
@@ -50,6 +50,7 @@ function definition() {
$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);

0 comments on commit 8bd1829

Please sign in to comment.