mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #01841
[Bug 643642] Re: Viewing a blog with no comments, but comments enabled gives undefined StdClass->commentcount error
** Changed in: mahara
Assignee: (unassigned) => Eugene (eugene-catalyst)
--
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: New
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