From: Eileen McNaughton Date: Sun, 31 Jul 2022 20:05:10 +0000 (+1000) Subject: Add upgrade for contribution offline receipt X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e99038f2f86a8844f26155e3202711fc25689a9d;p=civicrm-core.git Add upgrade for contribution offline receipt --- diff --git a/CRM/Upgrade/Incremental/MessageTemplates.php b/CRM/Upgrade/Incremental/MessageTemplates.php index bf9c443a39..e85585a596 100644 --- a/CRM/Upgrade/Incremental/MessageTemplates.php +++ b/CRM/Upgrade/Incremental/MessageTemplates.php @@ -342,6 +342,14 @@ class CRM_Upgrade_Incremental_MessageTemplates { ['name' => 'payment_or_refund_notification', 'type' => 'text'], ], ], + [ + 'version' => '5.53.alpha1', + 'upgrade_descriptor' => ts('Update to new smarty variables for line items, tax'), + 'templates' => [ + ['name' => 'contribution_offline_receipt', 'type' => 'text'], + ['name' => 'contribution_offline_receipt', 'type' => 'html'], + ], + ], ]; } @@ -350,7 +358,7 @@ class CRM_Upgrade_Incremental_MessageTemplates { * * @return array */ - public function getTemplatesToUpdate() { + public function getTemplatesToUpdate(): array { $templates = $this->getTemplateUpdates(); $return = []; foreach ($templates as $templateArray) {