Undefined index "versioning" in blogpost block rendering

Bug #1815953 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Unassigned
18.10
Fix Released
High
Unassigned
19.04
Fix Released
High
Unassigned

Bug Description

Undefined index: versioning

Call stack (most recent first):
* log_message(string(size 27), integer, true, true, string(size 85), integer) at ***/lib/errors.php:520
* error(integer, string(size 27), string(size 85), integer, array(size 20)) at ***/artefact/blog/lib.php:1087
* ArtefactTypeBlogPost::get_posts(string(size 7), integer, integer, array(size 4)) at ***/artefact/blog/lib.php:342
* ArtefactTypeBlog->render_self(array(size 4)) at ***/artefact/artefact.php

When we enable the option 'countcomments' we also check the 'versioning' so we need to pass the $versioning value in as part of the options

Robert Lyon (robertl-9)
Changed in mahara:
importance: Undecided → High
status: New → In Progress
milestone: none → 19.04.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/9565

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9565
Committed: https://git.mahara.org/mahara/mahara/commit/9f0316712f66da702df4507d6fa3d8492e1380b1
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 9f0316712f66da702df4507d6fa3d8492e1380b1
Author: Robert Lyon <email address hidden>
Date: Fri Feb 15 08:15:04 2019 +1300

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 <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "18.10_STABLE" branch: https://reviews.mahara.org/9572

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9572
Committed: https://git.mahara.org/mahara/mahara/commit/bfe7d688e1cda2dd329567d81fafa2f82365fdf6
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.10_STABLE

commit bfe7d688e1cda2dd329567d81fafa2f82365fdf6
Author: Robert Lyon <email address hidden>
Date: Fri Feb 15 08:15:04 2019 +1300

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 <email address hidden>
(cherry picked from commit 9f0316712f66da702df4507d6fa3d8492e1380b1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.