Permalink
Browse files

MDL-30536 Choice - remove setType so that validation works when JS is…

… disabled
  • Loading branch information...
1 parent b1d4c42 commit 264ca6c58ddab464a5d2fffe06158e7514596e53 @danmarsden danmarsden committed with Sam Hemelryk Dec 2, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 mod/choice/mod_form.php
View
1 mod/choice/mod_form.php
@@ -50,7 +50,6 @@ function definition() {
$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_CLEANHTML);

0 comments on commit 264ca6c

Please sign in to comment.