Skip to content

Commit

Permalink
Use already detemined value for contributionRecurid
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 26, 2020
1 parent 8a29c31 commit ac6b966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -4545,8 +4545,8 @@ public static function completeOrder($input, $ids, $objects, $isPostPaymentCreat
}

// Add new soft credit against current $contribution.
if (!empty($objects['contributionRecur']) && $objects['contributionRecur']->id) {
CRM_Contribute_BAO_ContributionRecur::addrecurSoftCredit($objects['contributionRecur']->id, $contribution->id);
if ($recurringContributionID) {
CRM_Contribute_BAO_ContributionRecur::addrecurSoftCredit($recurringContributionID, $contribution->id);
}

$contribution->contribution_status_id = $contributionParams['contribution_status_id'];
Expand Down

0 comments on commit ac6b966

Please sign in to comment.