Skip to content

Commit

Permalink
Assign taxTerm at top level on all forms
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Nov 29, 2024
1 parent 2a9350b commit ce99fc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions CRM/Core/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ce99fc9

Please sign in to comment.