It appears that when deleting a case, its comment's rows are not removed from the casetracker_comment_status table. They do seem to be removed on delete comment, however.
You can confirm by creating a case, adding a comment, noting its comment id, deleting the case, and then checking the sql tables for casetracker_comment_status that the row for that cid still exists.
As I stated If you delete a comment then this row IS removed, so the hook_comment on op delete is running then, but is NOT firing on case delete.. I'm still looking into it myself but I dont know enough about drupal to know whats up here so I'll throw it out to the community and maintainers.
Comments
Comment #1
jjrosent commentedI Believe
is returning false so
is never running
Looking into further....
..
nope no clue. It sure seems as though that while isnt being entered, and also that, the comment delete api also isnt catching....
Comment #2
jjrosent commentedAha! I found an existing bug against core where hook_comment on op delete doesnt call the hooks. They refer to it as late as 7 but I believe its in 5 as well? -- killes was in on that discussion in January, maybe he can comment.
see: http://drupal.org/node/89181
If this is the same issue Im not sure how to handle, do we patch to make sure casetracker cleans up after itself or do we leave it, what do we mark this case?
Comment #3
jmiccolis commentedChanging version to HEAD and setting to 'postponed'. I hate that this is an issue, but it is relatively minor. Let's wait for core to fix this. If anyone wants to see this resolved please help with http://drupal.org/node/89181
Comment #4
pedrorocha commentedI'm cleaning the module issues, so if somebody thinks that this issue does make sense yet, feel free to reopen.