Merge branch 'MDL-38414-master' of git://github.com/FMCorz/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2013-03-20 01:21:05 +01:00
commit 99b3e4e7bd

View File

@ -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);
}
}
}