mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-60812-master' of https://github.com/mwehr/moodle
This commit is contained in:
commit
3c2501ac77
@ -123,9 +123,7 @@ class enrol_manual_enrol_users_form extends moodleform {
|
||||
|
||||
$roles = get_assignable_roles($context);
|
||||
$mform->addElement('select', 'roletoassign', get_string('assignrole', 'enrol_manual'), $roles);
|
||||
$keys = array_keys($roles);
|
||||
$defaultrole = end($keys);
|
||||
$mform->setDefault('roletoassign', $defaultrole);
|
||||
$mform->setDefault('roletoassign', $instance->roleid);
|
||||
|
||||
$mform->addAdvancedStatusElement('main');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user