Skip to content
Snippets Groups Projects
Commit 8753de39 authored by Jamie McClelland's avatar Jamie McClelland
Browse files

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
parent 53a674b4
Branches
Tags
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment