Skip to content

Commit

Permalink
Correct the Job ID in event processing part.
Browse files Browse the repository at this point in the history
  • Loading branch information
guanhuan committed Jul 3, 2014
1 parent 4797196 commit a8d45cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Mailjet/BAO/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static function recordBounce($params) {
$contactId = CRM_Utils_Array::value('contact_id' , $params);
$emailId = CRM_Utils_Array::value('email_id' , $params);
$email = CRM_Utils_Array::value('email' , $params);
$jobId = CRM_Core_DAO::getFieldValue('CRM_Mailing_DAO_MailingJob', $mailingId, 'id', 'mailing_id');
$jobId = CRM_Utils_Array::value('job_id' , $params);
$eqParams = array(
'job_id' => $jobId,
'contact_id' => $contactId,
Expand Down
1 change: 1 addition & 0 deletions CRM/Utils/Mail/MailjetProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ static function processBounces($mailingId = NULL) {
$bounceArray = array(
'is_spam' => FALSE,
'mailing_id' => $currentMailingId,
'job_id' => $jobId,
'contact_id' => $contactId,
'email_id' => $emailId,
'email' => $emailAddress,
Expand Down

0 comments on commit a8d45cb

Please sign in to comment.