always set formTpl
authordemeritcowboy <demeritcowboy@hotmail.com>
Wed, 10 Nov 2021 00:16:47 +0000 (19:16 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Wed, 10 Nov 2021 00:16:47 +0000 (19:16 -0500)
CRM/Core/Controller.php

index 0a5f6482e8d55de2a45cfeb42d9cebbe9e697994..3924aa464173e07a943e57f9fbc16a0d7508f223 100644 (file)
@@ -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