From 10c94b6347143907cbd19016a25f65ed44532ac3 Mon Sep 17 00:00:00 2001 From: Robert Lyon Date: Wed, 19 Jun 2019 13:42:50 +1200 Subject: [PATCH] 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 (cherry picked from commit 6a077cda30a16ca66725caf54b467c3ac6f3da53) --- htdocs/blocktype/groupviews/groupviews.json.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/blocktype/groupviews/groupviews.json.php b/htdocs/blocktype/groupviews/groupviews.json.php index 335633e9b6..6f7abf2999 100644 --- a/htdocs/blocktype/groupviews/groupviews.json.php +++ b/htdocs/blocktype/groupviews/groupviews.json.php @@ -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)); -- GitLab