Deleting comment in artefact view causes undefined property error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[WAR] 7e (artefact/
Call stack (most recent first):
log_
error(8, "Trying to get property of non-object", "/home/
delete_
This is because we are checking the view id rather than the artefact id the comment is attached to
To replicate:
1. Create 2 users.
2. Log in as user A and create a page containing an image block
3. Shared page with user B.
4. Log in as user B and comment on the image block.
5. Delete the comment.
Changed in mahara: | |
milestone: | none → 19.04.0 |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/9906