From f20d7c41af968a3ed24437ec38f96eefeaf83afd Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 5 Apr 2007 03:56:50 +0000 Subject: [PATCH] fix for MDL-9197. multilang filter is not applied to default role in course settings --- course/edit_form.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/course/edit_form.php b/course/edit_form.php index cd71c8aea1..090c161143 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -166,6 +166,12 @@ class course_edit_form extends moodleform { $choices[0] = get_string('sitedefault'); } $choices = $choices + $roles; + + // fix for MDL-9197 + foreach ($choices as $choiceid => $choice) { + $choices[$choiceid] = format_string($choice); + } + $mform->addElement('select', 'defaultrole', get_string('defaultrole', 'role'), $choices); $mform->setDefault('defaultrole', 0); -- 2.39.5