Skip to content

Commit 1a07f9f

Browse files
committed
Merge branch 'MDL-58997-group-names-multilang' of https://github.com/lucaboesch/moodle
2 parents a8aa1a0 + 29b83cb commit 1a07f9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

calendar/event_form.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ function definition () {
7272
if (!empty($eventtypes->groups) && is_array($eventtypes->groups)) {
7373
$groupoptions = array();
7474
foreach ($eventtypes->groups as $group) {
75-
$groupoptions[$group->id] = $group->name;
75+
$groupoptions[$group->id] = format_string($group->name, true,
76+
array('context' => context_course::instance($group->courseid)));
7677
}
7778
$mform->addElement('select', 'groupid', get_string('typegroup', 'calendar'), $groupoptions);
7879
$mform->disabledIf('groupid', 'eventtype', 'noteq', 'group');

0 commit comments

Comments
 (0)