← Back to team overview

mahara-contributors team mailing list archive

[Bug 643642] Re: Viewing a blog with no comments, but comments enabled gives undefined StdClass->commentcount error

 

** Changed in: mahara
       Status: New => In Progress

-- 
Viewing a blog with no comments, but comments enabled gives undefined StdClass->commentcount error
https://bugs.launchpad.net/bugs/643642
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: In Progress

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





References