Needs review
Project:
Case Tracker
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2009 at 16:01 UTC
Updated:
1 Nov 2010 at 16:28 UTC
When deleting a case node type, all associated comments are deleted, however the entry in the casetracker_comment_status table related to the deleted comments remain.
To replicate:
1) Create a case
2) comment on the case and change case states via casetracker comment form
3) Delete the case
Additional notes:
When deleting a comment on a case, the entry in the casetracker_comment_status is correctly removed.
Comments
Comment #1
nvahalik commentedThis is a problem with core: #67703: hook_comment(delete) not invoked when node is deleted. Comment #3 has a patch.
The issue here is that comment_nodeapi('delete') deletes all of the comments before Case Tracker can get a chance to delete the data out of it's tables. The module's code is correct and functions properly but it just never gets called.
Recommend marking this `closed (works as designed)` since this isn't a problem with Case Tracker itself.
Comment #2
nvahalik commentedMarking as needs review (see #1).