Skip to content

Commit

Permalink
Ensure smarty variables are consistently assigned in report
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Nov 29, 2021
1 parent 2031271 commit 85d62e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,9 @@ public function __construct() {
*/
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');
Expand Down

0 comments on commit 85d62e0

Please sign in to comment.