From 8753de39fd754e8bda5c0e0ea50021296d36bc2e Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Tue, 18 Mar 2014 16:29:35 -0400 Subject: [PATCH] CRM-14360 - ensure recur contributions not assigned to deleted contact. ---------------------------------------- * 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Payment/AuthorizeNetIPN.php b/CRM/Core/Payment/AuthorizeNetIPN.php index 52065560a4..531e117d78 100644 --- a/CRM/Core/Payment/AuthorizeNetIPN.php +++ b/CRM/Core/Payment/AuthorizeNetIPN.php @@ -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)); -- 2.25.1