mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-23444 fixed missing file include in user selector ajax
This commit is contained in:
parent
0762b758d6
commit
be42eca7a4
@ -1531,6 +1531,13 @@ class admins_potential_selector extends user_selector_base {
|
||||
|
||||
return array($groupname => $availableusers);
|
||||
}
|
||||
|
||||
protected function get_options() {
|
||||
global $CFG;
|
||||
$options = parent::get_options();
|
||||
$options['file'] = $CFG->admin . '/roles/lib.php';
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
|
||||
class admins_existing_selector extends user_selector_base {
|
||||
@ -1573,4 +1580,11 @@ class admins_existing_selector extends user_selector_base {
|
||||
|
||||
return array($groupname => $availableusers);
|
||||
}
|
||||
|
||||
protected function get_options() {
|
||||
global $CFG;
|
||||
$options = parent::get_options();
|
||||
$options['file'] = $CFG->admin . '/roles/lib.php';
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user