Closed (fixed)
Project:
Case Tracker
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Oct 2007 at 15:31 UTC
Updated:
12 Nov 2007 at 22:42 UTC
When the CT mail module sends an e-mail after posting an comment, the e-mail contains the case_status_id, assign_to, priortity and so on, from before the comment save.
I made a little trace by inserting
dvm($node->case_status_id, 'name_of_the_node_hook:'.$op);
in the node_hooks and
dvm(case->case_status_id, 'casetracker_mail_send');
in the casetracker_mail_send function.
And then you see that the email is send before the data is updated in the node:
casetracker_nodeapi:load => NULL casetracker_mail_nodeapi:load => NULL casetracker_nodeapi:view => string(1) "6" casetracker_nodeapi:load => NULL casetracker_mail_nodeapi:load => NULL casetracker_mail_nodeapi:view => string(1) "6" casetracker_nodeapi:alter => string(1) "6" casetracker_mail_nodeapi:alter => string(1) "6" casetracker_mail_send => string(1) "6" <-- mail is send casetracker_nodeapi:load => NULL casetracker_mail_nodeapi:load => NULL casetracker_nodeapi:view => string(1) "7" <-- this is the, by comment, new status casetracker_nodeapi:load => NULL casetracker_mail_nodeapi:load => NULL casetracker_mail_nodeapi:view => string(1) "7" casetracker_nodeapi:alter => string(1) "7" casetracker_mail_nodeapi:alter => string(1) "7" casetracker_nodeapi:load => NULL casetracker_mail_nodeapi:load => NULL
Comments
Comment #1
zero2one commentedIs fixed in http://drupal.org/cvs?commit=85845
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.