Ensure that contactId is always present
*
* @var string[]
*/
- public $expectedSmartyVariables = ['breadcrumb', 'pageTitle', 'isForm', 'hookContent', 'hookContentPlacement'];
+ public $expectedSmartyVariables = [
+ 'breadcrumb',
+ 'pageTitle',
+ 'isForm',
+ 'hookContent',
+ 'hookContentPlacement',
+ // required for footer.tpl
+ 'contactId',
+ ];
/**
* Class constructor.
*}
{if call_user_func(array('CRM_Core_Permission','check'), 'access CiviCRM')}
{include file="CRM/common/accesskeys.tpl"}
- {if !empty($contactId)}
+ {if $contactId}
{include file="CRM/common/contactFooter.tpl"}
{/if}