MDL-63387 enrol_manual: show both role names in enrol users dialog.
authorPaul Holden <paulh@moodle.com>
Fri, 16 Aug 2019 15:43:50 +0000 (16:43 +0100)
committerPaul Holden <paulh@moodle.com>
Tue, 1 Sep 2020 11:05:25 +0000 (12:05 +0100)
enrol/manual/classes/enrol_users_form.php

index 171aa26..257a5c2 100644 (file)
@@ -116,7 +116,7 @@ class enrol_manual_enrol_users_form extends moodleform {
             }
         }
 
-        $roles = get_assignable_roles($context);
+        $roles = get_assignable_roles($context, ROLENAME_BOTH);
         $mform->addElement('select', 'roletoassign', get_string('assignrole', 'enrol_manual'), $roles);
         $mform->setDefault('roletoassign', $instance->roleid);