mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-43789: coursename disallows spaces in user bulk actions filter
Spaces and other non alphanumeric characters are disallowed in coursename filter for user bulk actions.This prevents filtering based upon courserole if the coursename contains spaces or other non alphanumeric characters.
This commit is contained in:
parent
f21e920beb
commit
99849ce131
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class user_filter_courserole extends user_filter_type {
|
|||
$objs[] =& $mform->createElement('select', $this->_name .'_ct', null, $this->get_course_categories());
|
||||
$objs[] =& $mform->createElement('text', $this->_name, null);
|
||||
$grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false);
|
||||
$mform->setType($this->_name, PARAM_ALPHANUMEXT);
|
||||
$mform->setType($this->_name, PARAM_TEXT);
|
||||
if ($this->_advanced) {
|
||||
$mform->setAdvanced($this->_name.'_grp');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue