]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14936
authorthepurpleblob <thepurpleblob>
Wed, 21 May 2008 12:28:09 +0000 (12:28 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 21 May 2008 12:28:09 +0000 (12:28 +0000)
Course managers admin screen shows roles in "correct" order.

lib/adminlib.php

index cbf960b4b5e76a2d8d017861a8e39ed1410330bf..659b55a23729956b7dec12cfa392ccf136c66664 100644 (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);