Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38736 mod_choice: fix missing param type

  • Loading branch information...
commit 8bd1829310c25d4b0a6f0b4d32bc3241f5db87ae 1 parent 373a8e0
@danpoltawski danpoltawski authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/choice/mod_form.php
View
1  mod/choice/mod_form.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.