Merge branch 'MDL-59656_master' of git://github.com/markn86/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 7 Aug 2017 07:26:03 +0000 (09:26 +0200)
committerDavid Monllao <davidm@moodle.com>
Mon, 7 Aug 2017 07:26:03 +0000 (09:26 +0200)
group/classes/output/user_groups_editable.php

index f4927b5..831189a 100644 (file)
@@ -75,7 +75,7 @@ class user_groups_editable extends \core\output\inplace_editable {
         $options = [];
 
         foreach ($coursegroups as $group) {
-            $options[$group->id] = $group->name;
+            $options[$group->id] = format_string($group->name, true, ['context' => $this->context]);
         }
         $this->edithint = get_string('editusersgroupsa', 'group', fullname($user));
         $this->editlabel = get_string('editusersgroupsa', 'group', fullname($user));