'contact_view_options', TRUE
);
$smarty->assign('changeLog', $viewOptions['log']);
+ $smarty->ensureVariablesAreAssigned(['action']);
$ret = ['markup' => $smarty->fetch('CRM/common/contactFooter.tpl')];
if ($includeCount) {
$ret['count'] = CRM_Contact_BAO_Contact::getCountComponent('log', $cid);
<div class="crm-footer" id="crm-record-log">
<span class="col1">
{if !empty($external_identifier)}{ts}External ID{/ts}: {$external_identifier}{/if}
- {if !isset($action) || (isset($action) && $action NEQ 2)} {ts}Contact ID{/ts}: {$contactId}{/if}
+ {if $action !== 2} {ts}Contact ID{/ts}: {$contactId}{/if}
</span>
{if !empty($lastModified)}
{ts}Last Change by{/ts}: <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$lastModified.id`"}">{$lastModified.name}</a> ({$lastModified.date|crmDate})