Permalink
Browse files

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

… disabled
  • Loading branch information...
1 parent effe153 commit e85af10d1af8fe537edab4da855ae648b8043a02 @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
@@ -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 e85af10

Please sign in to comment.