MDL-14936

Course managers admin screen shows roles in "correct" order.
This commit is contained in:
thepurpleblob
2008-05-21 12:22:21 +00:00
parent 0c4c41bd80
commit 902fa69779
+1 -1
View File
@@ -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);