mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +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);
|
$roles = get_assignable_roles($context);
|
||||||
$mform->addElement('select', 'roletoassign', get_string('assignrole', 'enrol_manual'), $roles);
|
$mform->addElement('select', 'roletoassign', get_string('assignrole', 'enrol_manual'), $roles);
|
||||||
$keys = array_keys($roles);
|
$mform->setDefault('roletoassign', $instance->roleid);
|
||||||
$defaultrole = end($keys);
|
|
||||||
$mform->setDefault('roletoassign', $defaultrole);
|
|
||||||
|
|
||||||
$mform->addAdvancedStatusElement('main');
|
$mform->addAdvancedStatusElement('main');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user