From ce99fc9dcb542758df394adb3c3f11f34f8ac96b Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 29 Nov 2024 13:08:10 +1300 Subject: [PATCH] Assign taxTerm at top level on all forms --- CRM/Contribute/Form/Contribution/Confirm.php | 1 - CRM/Core/Form.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Confirm.php b/CRM/Contribute/Form/Contribution/Confirm.php index 0f60c1613648..0eacc65ec08e 100644 --- a/CRM/Contribute/Form/Contribution/Confirm.php +++ b/CRM/Contribute/Form/Contribution/Confirm.php @@ -487,7 +487,6 @@ public function buildQuickForm() { } $this->assign('receiptFromEmail', $this->_values['receipt_from_email'] ?? NULL); $this->assign('amount_block_is_active', $this->isFormSupportsNonMembershipContributions()); - $this->assign('taxTerm', \Civi::settings()->get('tax_term')); $this->assign('totalTaxAmount', $this->order->getTotalTaxAmount()); $isDisplayLineItems = $this->_priceSetId && !CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $this->_priceSetId, 'is_quick_config'); $this->assign('isDisplayLineItems', $isDisplayLineItems); diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index f8a0be343ec4..ddf64661952a 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -807,6 +807,7 @@ public function buildForm() { // it's already been initialized. self::$_template->ensureVariablesAreAssigned($this->expectedSmartyVariables); self::$_template->addExpectedTabHeaderKeys(); + $this->assign('taxTerm', \Civi::settings()->get('tax_term')); $this->_formBuilt = TRUE; }