Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
373a8e0
)
MDL-38736 mod_choice: fix missing param type
author
Dan Poltawski
<dan@moodle.com>
Wed, 27 Mar 2013 02:08:40 +0000
(10:08 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Wed, 27 Mar 2013 02:19:57 +0000
(10:19 +0800)
mod/choice/mod_form.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/choice/mod_form.php
b/mod/choice/mod_form.php
index
3a70036
..
7e63103
100644
(file)
--- a/
mod/choice/mod_form.php
+++ b/
mod/choice/mod_form.php
@@
-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);