Commit 7989e6b9 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1636061: Journals block shows group name instead shortname

When adding a Recent journal entries block to a page,
the group journals listed to be selected show the group name
as a detail, instead of the group shortname

behatnotneeded

Change-Id: Ib26a72cd353928eaf7255dcb0adb6a626ab53c26
(cherry picked from commit 00fba1ca)
parent da3c2342
......@@ -3230,7 +3230,7 @@ class View {
}
if (!empty($artefact->group)) {
$group = get_record('group', 'id', $artefact->group);
$artefact->groupname = !empty($group->shortname) ? $group->shortname : $group->name;
$artefact->groupname = $group->name;
$artefact->groupurl = get_config('wwwroot') . 'group/view.php?id=' . $group->id;
}
else if (!empty($artefact->institution)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment