mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-38414 course: Settings form displays all role renaming fields
This commit is contained in:
parent
8673a98d1d
commit
2ce5fd502f
@ -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