Skip to content

Commit

Permalink
Merge pull request #18209 from mattwire/repeattransaction_cleanup
Browse files Browse the repository at this point in the history
Remove unused variables from repeatTransaction
  • Loading branch information
eileenmcnaughton authored Aug 21, 2020
2 parents 1b5bcf0 + 34dc58e commit 72a028a
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 @@ -2613,7 +2613,7 @@ public static function contributionCount($contactId, $includeSoftCredit = TRUE)
* @return bool|array
* @throws CiviCRM_API3_Exception
*/
protected static function repeatTransaction(&$contribution, &$input, $contributionParams) {
protected static function repeatTransaction(&$contribution, $input, $contributionParams) {
if (!empty($contribution->id)) {
return FALSE;
}
Expand Down Expand Up @@ -4498,7 +4498,7 @@ public static function completeOrder($input, &$ids, $objects, $isPostPaymentCrea
], array_intersect_key($input, array_fill_keys($inputContributionWhiteList, 1)
));

$contributionParams['payment_processor'] = $input['payment_processor'] = $paymentProcessorId;
$contributionParams['payment_processor'] = $paymentProcessorId;

// If paymentProcessor is not set then the payment_instrument_id would not be correct.
// not clear when or if this would occur if you encounter this please fix here & add a unit test.
Expand Down

0 comments on commit 72a028a

Please sign in to comment.