mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
Merge branch 'MDL-58997-group-names-multilang' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
1a07f9f037
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user