From 95dff9da6b7cd4d880e299889455db5d8f3c38ef Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 21 May 2008 12:28:09 +0000 Subject: [PATCH] MDL-14936 Course managers admin screen shows roles in "correct" order. --- lib/adminlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adminlib.php b/lib/adminlib.php index cbf960b4b5..659b55a237 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -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); -- 2.39.5