From 8e3667d1c43772eeabb667adb0dfa0e8b2c82da8 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 7 Feb 2023 10:33:13 +1300 Subject: [PATCH] A couple of minor smarty notice fixes --- CRM/Contribute/Form/Search.php | 2 ++ CRM/Core/Form/Search.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php index 90f7c9787a..c3f65c0c13 100644 --- a/CRM/Contribute/Form/Search.php +++ b/CRM/Contribute/Form/Search.php @@ -75,6 +75,8 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search { $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 aa2e13b5b1..693af70456 100644 --- a/CRM/Core/Form/Search.php +++ b/CRM/Core/Form/Search.php @@ -121,8 +121,8 @@ class CRM_Core_Form_Search extends CRM_Core_Form { $this->handleForcedSearch(); } $this->_formValues = $this->getFormValues(); - // For searchResultsTasks.tpl. - $this->addExpectedSmartyVariables(['savedSearch', 'selectorLabel']); + // For searchResultsTasks.tpl & displaySearchCriteria.tpl + $this->addExpectedSmartyVariables(['savedSearch', 'selectorLabel', 'operator']); } /** -- 2.25.1