This commit is contained in:
Eloy Lafuente (stronk7) 2021-11-01 22:58:09 +01:00
commit 12795aa4b1

View File

@ -651,8 +651,8 @@ if ($hassiteconfig) {
3, $options));
// Teacher roles.
$options = [];
foreach (get_all_roles() as $role) {
$options[$role->id] = $role->shortname;
foreach (role_get_names() as $role) {
$options[$role->id] = $role->localname;
}
$temp->add(new admin_setting_configmultiselect('searchteacherroles',
new lang_string('searchteacherroles', 'admin'),