mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-39601 user: Missing setType in user filters
This commit is contained in:
parent
f000edba16
commit
a8655ae728
@ -37,6 +37,7 @@ class user_filter_cohort extends user_filter_type {
|
||||
$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');
|
||||
|
@ -46,6 +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);
|
||||
if ($this->_advanced) {
|
||||
$mform->setAdvanced($this->_name.'_grp');
|
||||
}
|
||||
|
@ -62,6 +62,7 @@ class user_filter_profilefield extends user_filter_type {
|
||||
$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');
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ class user_filter_text extends user_filter_type {
|
||||
$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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user