MDL-78018 mod_assign: format group name in grading table.

This commit is contained in:
Paul Holden
2023-06-11 15:02:31 +01:00
parent 8c989335be
commit 419fcadcc8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -791,7 +791,7 @@ class assign_grading_table extends table_sql implements renderable {
$group = false;
$this->get_group_and_submission($row->id, $group, $submission, -1);
if ($group) {
return $group->name;
return format_string($group->name, true, ['context' => $this->assignment->get_context()]);
} else if ($this->assignment->get_instance()->preventsubmissionnotingroup) {
$usergroups = $this->assignment->get_all_groups($row->id);
if (count($usergroups) > 1) {