Skip to content

Commit

Permalink
A couple of minor smarty notice fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Feb 6, 2023
1 parent 4673284 commit 01e6b10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CRM/Contribute/Form/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public function preProcess() {
$this->_done = FALSE;

parent::preProcess();
// For contributionTotals.tpl
$this->addExpectedSmartyVariables(['annual']);

$this->_queryParams = CRM_Contact_BAO_Query::convertFormValues($this->_formValues);
$selector = new CRM_Contribute_Selector_Search($this->_queryParams,
Expand Down
4 changes: 2 additions & 2 deletions CRM/Core/Form/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public function preProcess() {
$this->handleForcedSearch();
}
$this->_formValues = $this->getFormValues();
// For searchResultsTasks.tpl.
$this->addExpectedSmartyVariables(['savedSearch', 'selectorLabel']);
// For searchResultsTasks.tpl & searchDisplayResults.tpl
$this->addExpectedSmartyVariables(['savedSearch', 'selectorLabel', 'operator']);
}

/**
Expand Down

0 comments on commit 01e6b10

Please sign in to comment.