MDL-14936
Course managers admin screen shows roles in "correct" order.
This commit is contained in:
+1
-1
@@ -3226,7 +3226,7 @@ class admin_setting_special_coursemanager extends admin_setting_configmulticheck
|
||||
if (is_array($this->choices)) {
|
||||
return true;
|
||||
}
|
||||
if ($roles = get_records('role')) {
|
||||
if ($roles = get_records('role','','','sortorder')) {
|
||||
$this->choices = array();
|
||||
foreach($roles as $role) {
|
||||
$this->choices[$role->id] = format_string($role->name);
|
||||
|
||||
Reference in New Issue
Block a user