Skip to content

Commit

Permalink
Merge pull request #23037 from eileenmcnaughton/assign2
Browse files Browse the repository at this point in the history
Ensure soft credit types are assigned to the template
  • Loading branch information
colemanw authored Apr 1, 2022
2 parents b29749a + 8082f0e commit 3b04d17
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 @@ -2840,10 +2840,10 @@ public function _assignMessageVariablesToTemplate(&$values, $input, $returnMessa
'Amount' => CRM_Utils_Money::format($softCredit['amount'], $softCredit['currency']),
];
}
$template->assign('softCreditTypes', $softCreditTypes);
$template->assign('softCredits', $softCredits);
}
}
$template->assign('softCreditTypes', $softCreditTypes ?? NULL);
$template->assign('softCredits', $softCredits ?? NULL);

$dao = new CRM_Contribute_DAO_ContributionProduct();
$dao->contribution_id = $this->id;
Expand Down

0 comments on commit 3b04d17

Please sign in to comment.