Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 2ce5fd502fc49f30bc6ae374a9de696978d8558b 1 parent 8673a98
@FMCorz FMCorz authored
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);
- }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.