From 9106408a644090121a7e67259c5c1914215cfa4c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 28 Nov 2021 19:26:38 +1300 Subject: [PATCH] Ensure smarty variables are consistently assigned in report --- CRM/Report/Form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 87ff572600..987eea19e1 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -615,7 +615,9 @@ class CRM_Report_Form extends CRM_Core_Form { */ public function preProcessCommon() { $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean'); - + // Ensure smarty variables are assigned here since this function is called from + // the report api and the main buildForm is not. + self::$_template->ensureVariablesAreAssigned($this->expectedSmartyVariables); $this->_dashBoardRowCount = CRM_Utils_Request::retrieve('rowCount', 'Integer'); $this->_section = CRM_Utils_Request::retrieve('section', 'Integer'); -- 2.25.1