Deleting a private comment problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Robert Lyon |
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/
* error(8, "Trying to get property of non-object", "/home/
* ArtefactTypeCom
* ArtefactTypeCom
This is because we fetch $lastcomment and try to access it's 'id' value - but that is only for public comments
Changed in mahara: | |
status: | New → In Progress |
importance: | Undecided → Medium |
milestone: | none → 19.10.0 |
Changed in mahara: | |
assignee: | nobody → Robert Lyon (robertl-9) |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/10365