CRM-14360 - ensure recur contributions not assigned to deleted contact.
authorJamie McClelland <jm@mayfirst.org>
Tue, 18 Mar 2014 20:29:35 +0000 (16:29 -0400)
committerJamie McClelland <jm@mayfirst.org>
Tue, 18 Mar 2014 20:29:35 +0000 (16:29 -0400)
----------------------------------------
* CRM-14360: recurring contributions still assigned to deleted contacts for authorize.net
  http://issues.civicrm.org/jira/browse/CRM-14360

CRM/Core/Payment/AuthorizeNetIPN.php

index 52065560a4ce3749ed49e94a0245361c1792dda5..531e117d787468a5c38ec9f00aa3276c6d75dda1 100644 (file)
@@ -253,11 +253,11 @@ INNER JOIN civicrm_contribution co ON co.contribution_recur_id = cr.id
     $contRecur = CRM_Core_DAO::executeQuery($sql);
     $contRecur->fetch();
     $ids['contributionRecur'] = $contRecur->id;
-    if($ids['contact_id'] != $contRecur->contact_id){
-      CRM_Core_Error::debug_log_message("Recurring contribution appears to have been re-assigned from id {$ids['contact_id']} to {$contRecur->contact_id}
+    if($ids['contact'] != $contRecur->contact_id){
+      CRM_Core_Error::debug_log_message("Recurring contribution appears to have been re-assigned from id {$ids['contact']} to {$contRecur->contact_id}
         Continuing with {$contRecur->contact_id}
       ");
-      $ids['contact_id'] = $contRecur->contact_id;
+      $ids['contact'] = $contRecur->contact_id;
     }
     if (!$ids['contributionRecur']) {
       CRM_Core_Error::debug_log_message("Could not find contributionRecur id: ".print_r($input, TRUE));