From 44fec73b4b2ec65bf61c5e4754211b608875a458 Mon Sep 17 00:00:00 2001 From: Bob Silvern Date: Wed, 22 Jun 2016 14:30:56 -0700 Subject: [PATCH] CRM-18805 - fix whitespace to comply with coding standards ---------------------------------------- * CRM-18805: Contribution page not recorded on recurring transactions, Recurring contribution payments do not create CC or BCC emails or profile notifications https://issues.civicrm.org/jira/browse/CRM-18805 --- CRM/Contribute/BAO/Contribution.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index ec16a78b2f..dc0f4ec63e 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2115,12 +2115,13 @@ LEFT JOIN civicrm_contribution contribution ON ( componentPayment.contribution_ $contributionParams['contact_id'] = $templateContribution['contact_id']; $contributionParams['source'] = empty($templateContribution['source']) ? ts('Recurring contribution') : $templateContribution['source']; - //CRM-18805 -- Contribution page not recorded on recurring transactions, Recurring contribution payments - //do not create CC or BCC emails or profile notifications - if (isset($contribution->contribution_page_id)) { //being safe here, not sure if we can ever arrive with this unset + //CRM-18805 -- Contribution page not recorded on recurring transactions, Recurring contribution payments + //do not create CC or BCC emails or profile notifications. + //The if is just to be safe. Not sure if we can ever arrive with this unset + if (isset($contribution->contribution_page_id)) { $contributionParams['contribution_page_id'] = $contribution->contribution_page_id; } - + $createContribution = civicrm_api3('Contribution', 'create', $contributionParams); $contribution->id = $createContribution['id']; CRM_Contribute_BAO_ContributionRecur::copyCustomValues($contributionParams['contribution_recur_id'], $contribution->id); -- 2.25.1