Commit 9f031671 authored by Robert Lyon's avatar Robert Lyon

Bug 1815953: Need to pass versioning as false when countcomments is true

and we got to 2nd page of pagination in a blog block

behatnotneeded

Change-Id: Ia6b3401ca63b7f2a25cc415726d51bb0400ef8d8
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 10fd1fe3
......@@ -28,6 +28,7 @@ if ($blockid = param_integer('block', null)) {
$configdata = $bi->get('configdata');
$limit = isset($configdata['count']) ? $configdata['count'] : 5;
$configdata['countcomments'] = true;
$configdata['versioning'] = false;
$configdata['viewid'] = $bi->get('view');
$posts = ArtefactTypeBlogpost::get_posts($configdata['artefactid'], $limit, $offset, $configdata);
$template = 'artefact:blog:viewposts.tpl';
......
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