From: demeritcowboy Date: Wed, 10 Nov 2021 00:16:47 +0000 (-0500) Subject: always set formTpl X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=03f4625032cfa27a2bb4bdfa2ea26bed691392a7;p=civicrm-core.git always set formTpl --- diff --git a/CRM/Core/Controller.php b/CRM/Core/Controller.php index 0a5f6482e8..3924aa4641 100644 --- a/CRM/Core/Controller.php +++ b/CRM/Core/Controller.php @@ -172,6 +172,7 @@ class CRM_Core_Controller extends HTML_QuickForm_Controller { if (!isset(self::$_template)) { self::$_template = CRM_Core_Smarty::singleton(); self::$_session = CRM_Core_Session::singleton(); + self::$_template->ensureVariablesAreAssigned(['formTpl']); } // lets try to get it from the session and/or the request vars