mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-38414-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
99b3e4e7bd
@ -276,9 +276,6 @@ class course_edit_form extends moodleform {
|
||||
foreach ($roles as $role) {
|
||||
$mform->addElement('text', 'role_'.$role->id, get_string('yourwordforx', '', $role->localname));
|
||||
$mform->setType('role_'.$role->id, PARAM_TEXT);
|
||||
if (!in_array($role->id, $assignableroles)) {
|
||||
$mform->setAdvanced('role_'.$role->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user