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 d4500ecd1f..c66e456e5f 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -850,9 +850,11 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $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 21aa7a9d56..e7c1e8e6c9 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 d873f64aa1..3702d00fb3 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -39,7 +39,7 @@ {/foreach} - {if $paymentAgreementTitle} + {if !$isBackOffice && $paymentAgreementTitle}
{$paymentAgreementTitle} -- 2.25.1