From 2ce5fd502fc49f30bc6ae374a9de696978d8558b Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Tue, 12 Mar 2013 13:04:02 +0800 Subject: [PATCH] MDL-38414 course: Settings form displays all role renaming fields --- course/edit_form.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/course/edit_form.php b/course/edit_form.php index 8f7e87532a8..3a292e0f170 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -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); - } } }