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:
7163803
)
MDL-26956 enrol form: add missing setType calls.
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Tue, 2 Apr 2013 10:57:12 +0000
(11:57 +0100)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Tue, 2 Apr 2013 10:57:12 +0000
(11:57 +0100)
enrol/users_forms.php
patch
|
blob
|
blame
|
history
diff --git
a/enrol/users_forms.php
b/enrol/users_forms.php
index
34af19f
..
2127935
100644
(file)
--- a/
enrol/users_forms.php
+++ b/
enrol/users_forms.php
@@
-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);
}
}