From: Eileen McNaughton Date: Sun, 28 Nov 2021 06:26:38 +0000 (+1300) Subject: Ensure smarty variables are consistently assigned in report X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9106408a644090121a7e67259c5c1914215cfa4c;p=civicrm-core.git Ensure smarty variables are consistently assigned in report --- 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');