Commit 154e4c31 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Delete from artefact_comment_comment table when deleting comments (bug #629156)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 5dc631e3
...@@ -171,6 +171,7 @@ class ArtefactTypeComment extends ArtefactType { ...@@ -171,6 +171,7 @@ class ArtefactTypeComment extends ArtefactType {
} }
db_begin(); db_begin();
$this->detach(); $this->detach();
delete_records('artefact_comment_comment', 'artefact', $this->id);
parent::delete(); parent::delete();
db_commit(); db_commit();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment