From 29b83cbb34c70568188f6b877d7486eda28efb11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Fri, 19 May 2017 17:05:02 +0200 Subject: [PATCH] MDL-58997 calendar: Group names passing multilang filters. --- calendar/event_form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/event_form.php b/calendar/event_form.php index 6a1bdf9ca32..ed030da3bb1 100644 --- a/calendar/event_form.php +++ b/calendar/event_form.php @@ -72,7 +72,8 @@ class event_form extends moodleform { if (!empty($eventtypes->groups) && is_array($eventtypes->groups)) { $groupoptions = array(); foreach ($eventtypes->groups as $group) { - $groupoptions[$group->id] = $group->name; + $groupoptions[$group->id] = format_string($group->name, true, + array('context' => context_course::instance($group->courseid))); } $mform->addElement('select', 'groupid', get_string('typegroup', 'calendar'), $groupoptions); $mform->disabledIf('groupid', 'eventtype', 'noteq', 'group');