From: Jamie McClelland Date: Tue, 18 Mar 2014 20:29:35 +0000 (-0400) Subject: CRM-14360 - ensure recur contributions not assigned to deleted contact. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8753de39fd754e8bda5c0e0ea50021296d36bc2e;p=civicrm-core.git 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 --- 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));