Skip to content

Commit

Permalink
CIVICRM-2120 Payment API creates Activity with subject: "$x Offline P…
Browse files Browse the repository at this point in the history
…ayment for Contribution" even when a payment was captured online
  • Loading branch information
agileware-justin committed Apr 4, 2023
1 parent 3af313e commit 79e07cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -3522,7 +3522,7 @@ public static function validateFinancialType($financialTypeId, $relationName = '
*/
public static function addActivityForPayment($targetCid, $activityType, $title, $contributionId, $totalAmount, $currency, $trxn_date) {
$paymentAmount = CRM_Utils_Money::format($totalAmount, $currency);
$subject = "{$paymentAmount} - Offline {$activityType} for {$title}";
$subject = "{$paymentAmount} - {$activityType} for {$title}";
$date = CRM_Utils_Date::isoToMysql($trxn_date);
// source record id would be the contribution id
$srcRecId = $contributionId;
Expand Down

0 comments on commit 79e07cb

Please sign in to comment.