Viewing a blog with no comments, but comments enabled gives undefined StdClass->commentcount error

Bug #643642 reported by Andrew Nicols
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Eugene

Bug Description

On fresh install on master using linux:

Viewing a blog as a view artefact doesn't get comment counts correctly.

Steps to reproduce:
* Create blog post with comments enabled.
* Add recent blog posts to profile view
* Create second user.
* View first user.
* View the blog as a whole - e.g. http://mahara.local/view/artefact.php?artefact=4&view=4

artefact/blog/lib.php::ArtefactTypeBlogPost->get_posts() should get comment counts but doesn't because $viewoptions['countcomments'] is empty even though the individual blog post has comments enabled.

Error message pasted to gisthub http://gist.github.com/588081

Eugene (eugenev)
Changed in mahara:
assignee: nobody → Eugene (eugene-catalyst)
Eugene (eugenev)
Changed in mahara:
status: New → In Progress
Eugene (eugenev)
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
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.