Skip to content

Commit

Permalink
MDL-39601 user: Missing setType in user filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed May 14, 2013
1 parent f000edb commit a8655ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions user/filters/cohort.php
Expand Up @@ -37,6 +37,7 @@ function setupForm(&$mform) {
$objs[] =& $mform->createElement('select', $this->_name.'_op', null, $this->getOperators());
$objs[] =& $mform->createElement('text', $this->_name, null);
$grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false);
$mform->setType($this->_name, PARAM_RAW);
$mform->disabledIf($this->_name, $this->_name.'_op', 'eq', 5);
if ($this->_advanced) {
$mform->setAdvanced($this->_name.'_grp');
Expand Down
1 change: 1 addition & 0 deletions user/filters/courserole.php
Expand Up @@ -46,6 +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);
if ($this->_advanced) {
$mform->setAdvanced($this->_name.'_grp');
}
Expand Down
1 change: 1 addition & 0 deletions user/filters/profilefield.php
Expand Up @@ -62,6 +62,7 @@ function setupForm(&$mform) {
$objs[] =& $mform->createElement('select', $this->_name.'_op', null, $this->get_operators());
$objs[] =& $mform->createElement('text', $this->_name, null);
$grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false);
$mform->setType($this->_name, PARAM_RAW);
if ($this->_advanced) {
$mform->setAdvanced($this->_name.'_grp');
}
Expand Down
1 change: 1 addition & 0 deletions user/filters/text.php
Expand Up @@ -42,6 +42,7 @@ function setupForm(&$mform) {
$objs[] =& $mform->createElement('select', $this->_name.'_op', null, $this->getOperators());
$objs[] =& $mform->createElement('text', $this->_name, null);
$grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false);
$mform->setType($this->_name, PARAM_RAW);
$mform->disabledIf($this->_name, $this->_name.'_op', 'eq', 5);
if ($this->_advanced) {
$mform->setAdvanced($this->_name.'_grp');
Expand Down

0 comments on commit a8655ae

Please sign in to comment.