MDL-72850 search: show role alias in "Teacher roles" configuration.

This commit is contained in:
Paul Holden
2021-11-01 10:15:14 +00:00
parent b16fc54103
commit f4c8daa479
+2 -2
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'),