Download & Extend

casetracker_comment_status table entry not removed on case delete

Project:Case Tracker
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:needs review

Issue Summary

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

#1

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.

#2

Status:active» needs review

Marking as needs review (see #1).

nobody click here