diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php index 90f7c9787aa5..c3f65c0c13ad 100644 --- a/CRM/Contribute/Form/Search.php +++ b/CRM/Contribute/Form/Search.php @@ -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, diff --git a/CRM/Core/Form/Search.php b/CRM/Core/Form/Search.php index aa2e13b5b195..693af7045642 100644 --- a/CRM/Core/Form/Search.php +++ b/CRM/Core/Form/Search.php @@ -121,8 +121,8 @@ public function preProcess() { $this->handleForcedSearch(); } $this->_formValues = $this->getFormValues(); - // For searchResultsTasks.tpl. - $this->addExpectedSmartyVariables(['savedSearch', 'selectorLabel']); + // For searchResultsTasks.tpl & displaySearchCriteria.tpl + $this->addExpectedSmartyVariables(['savedSearch', 'selectorLabel', 'operator']); } /**