]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10495:
authorthepurpleblob <thepurpleblob>
Tue, 17 Jul 2007 13:13:35 +0000 (13:13 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 17 Jul 2007 13:13:35 +0000 (13:13 +0000)
Course Managers role's now in same order as Manage Roles screen.

lib/adminlib.php

index 7fde59e72c3e4e2a4725d1ade6270a5bd193ea9f..e06fdfeb13e9fa6b8af3313afb534dc1606a02ca 100644 (file)
@@ -2569,7 +2569,7 @@ class admin_setting_special_coursemanager extends admin_setting {
             $currentsetting = $this->get_setting();
         }
         // from to process which roles to display
-        if ($roles = get_records('role')) {
+        if ($roles = get_records_select('role', '', 'sortorder')) {
             $return = '<div class="form-group">';
             $first = true;
             foreach ($roles as $roleid=>$role) {