Commit 10c94b63 authored by Robert Lyon's avatar Robert Lyon

Bug 1829099: Display group collection title on group's "About" page

Fixing for pagination as well

behatnotneeded

Change-Id: I36815af5ceac75bdc8ee389f478a2bb037fe0452
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 6a077cda)
parent 3cfbd58d
......@@ -58,6 +58,9 @@ $groupviews = (array)View::view_search(null, null, (object) array('group' => $gr
null, $limit, $offset, true, $sort, null,
false, null, null, null, null, true);
foreach ($groupviews['data'] as &$view) {
if (empty($view['displaytitle'])) {
$view['displaytitle'] = $view['title']; // add for collections
}
if (isset($view['template']) && $view['template']) {
$collid = !empty($view['collid']) ? $view['collid'] : null;
$view['form'] = pieform(create_view_form(null, null, $view['id'], $collid, $collid));
......
Markdown is supported
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