Skip to content

Commit

Permalink
MDL-14936
Browse files Browse the repository at this point in the history
Course managers admin screen shows roles in "correct" order.
  • Loading branch information
thepurpleblob committed May 21, 2008
1 parent 9d5a4b2 commit 95dff9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adminlib.php
Expand Up @@ -3233,7 +3233,7 @@ function load_choices() {
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);
Expand Down

0 comments on commit 95dff9d

Please sign in to comment.