Permalink
Browse files

MDL-43789: coursename disallows spaces in user bulk actions filter

coursename filter for user bulk actions.This prevents filtering
based upon courserole if the coursename contains spaces or other non
alphanumeric characters.
  • Loading branch information...
1 parent 7d41592 commit dc396cf1e23e1e4019492a0479f9536d26afda0e @rajeevs1992 rajeevs1992 committed Apr 9, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/filters/courserole.php
@@ -46,7 +46,7 @@ function setupForm(&$mform) {
$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');
}

0 comments on commit dc396cf

Please sign in to comment.