Skip to content

Commit

Permalink
Ensure more common variables are set
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Oct 31, 2021
1 parent 7b0af45 commit 308ab5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public function __construct(
// let the constructor initialize this, should happen only once
if (!isset(self::$_template)) {
self::$_template = CRM_Core_Smarty::singleton();
self::$_template->ensureVariablesAreAssigned(['breadcrumb', 'pageTitle', 'suppressForm', 'beginHookFormElements', 'linkButtons', 'contactId']);
}
// Workaround for CRM-15153 - give each form a reasonably unique css class
$this->addClass(CRM_Utils_System::getClassName($this));
Expand Down

0 comments on commit 308ab5d

Please sign in to comment.