mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #55535
[Bug 1844748] [NEW] Deleting a private comment problem
Public bug reported:
When you have the following set up:
1) Have a group set up that you can submit pages to
2) Create a page and submit it to that group
3) View the page and leave a private comment on it
4) Now delete the comment and refresh the page
You see "Trying to get property of non-object" error similar to:
Call stack (most recent first):
* log_message("Trying to get property of non-object", 8, true, true, "/home/robertl/code/mahara-devel/mahara/htdocs/arte...", 803) at /home/robertl/code/mahara-devel/mahara/htdocs/lib/errors.php:521
* error(8, "Trying to get property of non-object", "/home/robertl/code/mahara-devel/mahara/htdocs/arte...", 803, array(size 15)) at /home/robertl/code/mahara-devel/mahara/htdocs/artefact/comment/lib.php:803
* ArtefactTypeComment::build_html(object(stdClass), false) at /home/robertl/code/mahara-devel/mahara/htdocs/artefact/comment/lib.php:553
* ArtefactTypeComment::get_comments(object(stdClass)) at /home/robertl/code/mahara-devel/mahara/htdocs/view/view.php:288
This is because we fetch $lastcomment and try to access it's 'id' value
- but that is only for public comments
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1844748
Title:
Deleting a private comment problem
Status in Mahara:
New
Bug description:
When you have the following set up:
1) Have a group set up that you can submit pages to
2) Create a page and submit it to that group
3) View the page and leave a private comment on it
4) Now delete the comment and refresh the page
You see "Trying to get property of non-object" error similar to:
Call stack (most recent first):
* log_message("Trying to get property of non-object", 8, true, true, "/home/robertl/code/mahara-devel/mahara/htdocs/arte...", 803) at /home/robertl/code/mahara-devel/mahara/htdocs/lib/errors.php:521
* error(8, "Trying to get property of non-object", "/home/robertl/code/mahara-devel/mahara/htdocs/arte...", 803, array(size 15)) at /home/robertl/code/mahara-devel/mahara/htdocs/artefact/comment/lib.php:803
* ArtefactTypeComment::build_html(object(stdClass), false) at /home/robertl/code/mahara-devel/mahara/htdocs/artefact/comment/lib.php:553
* ArtefactTypeComment::get_comments(object(stdClass)) at /home/robertl/code/mahara-devel/mahara/htdocs/view/view.php:288
This is because we fetch $lastcomment and try to access it's 'id'
value - but that is only for public comments
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1844748/+subscriptions
Follow ups
-
[Bug 1844748] Re: Deleting a private comment problem
From: Cecilia Vela Gurovic, 2019-10-31
-
[Bug 1844748] A change has been merged
From: Mahara Bot, 2019-10-20
-
[Bug 1844748] A patch has been submitted for review
From: Mahara Bot, 2019-10-20
-
[Bug 1844748] A patch has been submitted for review
From: Mahara Bot, 2019-10-15
-
[Bug 1844748] A change has been merged
From: Mahara Bot, 2019-10-14
-
[Bug 1844748] Re: Deleting a private comment problem
From: Robert Lyon, 2019-10-14
-
[Bug 1844748] Re: Deleting a private comment problem
From: Cecilia Vela Gurovic, 2019-10-10
-
[Bug 1844748] Re: Deleting a private comment problem
From: Rangi Daymond, 2019-10-03
-
[Bug 1844748] Re: Deleting a private comment problem
From: Kristina Hoeppner, 2019-10-01
-
[Bug 1844748] A patch has been submitted for review
From: Mahara Bot, 2019-09-20