MDL-14936

Course managers admin screen shows roles in "correct" order.
This commit is contained in:
thepurpleblob
2008-05-21 12:28:09 +00:00
parent 9d5a4b235e
commit 95dff9da6b
+1 -1
View File
@@ -3233,7 +3233,7 @@ class admin_setting_special_coursemanager extends admin_setting_configmulticheck
if (is_array($this->choices)) {
return true;
}
if ($roles = $DB->get_records('role')) {
if ($roles = $DB->get_records('role',null,'sortorder')) {
$this->choices = array();
foreach($roles as $role) {
$this->choices[$role->id] = format_string($role->name);