From 8ae1bd0f70bbf583f743d1e93de847102278bc2d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 19 Dec 2023 01:22:56 +1300 Subject: [PATCH] Address payment processor notice in thankyou .tpl --- CRM/Contribute/Form/Contribution/ThankYou.php | 1 + templates/CRM/Contribute/Form/Contribution/ThankYou.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/ThankYou.php b/CRM/Contribute/Form/Contribution/ThankYou.php index 157d83827f..16d31432cc 100644 --- a/CRM/Contribute/Form/Contribution/ThankYou.php +++ b/CRM/Contribute/Form/Contribution/ThankYou.php @@ -278,6 +278,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont } $this->assign('isPendingOutcome', $this->isPendingOutcome($params)); + $this->assign('paymentProcessorName', $this->getPaymentProcessorValue('frontend_title')); $this->freeze(); // can we blow away the session now to prevent hackery diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index cca5cf38c0..948173ce94 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -45,7 +45,7 @@ {/if} {elseif $isPendingOutcome} -
{ts 1=$paymentProcessor.name}Your contribution has been submitted to %1 for processing.{/ts}
+
{ts 1=$paymentProcessorName|escape}Your contribution has been submitted to %1 for processing.{/ts}
{if $is_email_receipt}
{if $onBehalfEmail AND ($onBehalfEmail neq $email)} -- 2.25.1