MDL-26956 enrol form: add missing setType calls.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 2 Apr 2013 10:57:12 +0000 (11:57 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 2 Apr 2013 10:57:12 +0000 (11:57 +0100)
enrol/users_forms.php

index 34af19f..2127935 100644 (file)
@@ -147,6 +147,7 @@ class enrol_users_filter_form extends moodleform {
 
         // Text search box.
         $mform->addElement('text', 'search', get_string('search'));
+        $mform->setType('search', PARAM_RAW);
 
         // Filter by enrolment plugin type.
         $mform->addElement('select', 'ifilter', get_string('enrolmentinstances', 'enrol'),
@@ -174,5 +175,6 @@ class enrol_users_filter_form extends moodleform {
 
         // Add hidden fields required by page.
         $mform->addElement('hidden', 'id', $this->_customdata['id']);
+        $mform->setType('id', PARAM_INT);
     }
 }