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

nvahalik’s picture

This 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.

nvahalik’s picture

Status: Active » Needs review

Marking as needs review (see #1).