Permalink
Browse files

MDL-26956 enrol form: add missing setType calls.

  • Loading branch information...
timhunt committed Apr 2, 2013
1 parent 7163803 commit 0e0a9806314fa3236338a628d88fd01ffb7eef22
Showing with 2 additions and 0 deletions.
  1. +2 −0 enrol/users_forms.php
View
@@ -147,6 +147,7 @@ function definition() {
// 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 @@ function definition() {
// Add hidden fields required by page.
$mform->addElement('hidden', 'id', $this->_customdata['id']);
+ $mform->setType('id', PARAM_INT);
}
}

0 comments on commit 0e0a980

Please sign in to comment.