MDL-24276 reversed order of roles
authorPetr Skoda <skodak@moodle.org>
Sun, 19 Sep 2010 10:49:24 +0000 (10:49 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 19 Sep 2010 10:49:24 +0000 (10:49 +0000)
enrol/cohort/addinstance_form.php

index af6bfd7..a6bcbbc 100644 (file)
@@ -55,6 +55,7 @@ class enrol_cohort_addinstance_form extends moodleform {
         $rs->close();
 
         $roles = get_assignable_roles($coursecontext);
+        $roles = array_reverse($roles, true); // descending default sortorder
 
         $mform->addElement('header','general', get_string('pluginname', 'enrol_cohort'));