From bfa02b4f8f3971a7f523539e33f0e12a915791ab Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Sat, 10 Jun 2023 13:00:38 -0600 Subject: [PATCH] Reduce PHP warnings on Contribution --- CRM/Contribute/Form/Contribution.php | 4 +++- templates/CRM/Contribute/Form/Contribution.tpl | 2 +- templates/CRM/Core/BillingBlock.tpl | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index d4500ecd1fce..c66e456e5fa3 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -850,9 +850,11 @@ public function buildQuickForm() { $trxnId->freeze(); } $financialType->freeze(); - $this->assign('freezeFinancialType', TRUE); + $freezeFinancialType = TRUE; + } } + $this->assign('freezeFinancialType', $freezeFinancialType ?? FALSE); if ($this->_action & CRM_Core_Action::VIEW) { $this->freeze(); diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 21aa7a9d562c..e7c1e8e6c969 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -22,7 +22,7 @@ {elseif $contactId} {ts 1=$displayName}Use this form to submit a new contribution on behalf of %1.{/ts} {else} - {ts 1=$displayName}Use this form to submit a new contribution.{/ts} + {ts}Use this form to submit a new contribution.{/ts} {/if} {if $contributionMode == 'live'} {ts}A LIVE transaction will be submitted using the selected payment processor.{/ts} diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index d873f64aa1e6..3702d00fb3f5 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -39,7 +39,7 @@ {/foreach} - {if $paymentAgreementTitle} + {if !$isBackOffice && $paymentAgreementTitle}
{$paymentAgreementTitle}