Permalink
Browse files

MDL-38414 course: Settings form displays all role renaming fields

  • Loading branch information...
1 parent 8673a98 commit 2ce5fd502fc49f30bc6ae374a9de696978d8558b @FMCorz FMCorz committed Mar 12, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 course/edit_form.php
View
3 course/edit_form.php
@@ -276,9 +276,6 @@ function definition() {
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);
- }
}
}

0 comments on commit 2ce5fd5

Please sign in to comment.