Skip to content
Snippets Groups Projects
Unverified Commit 8afcaf8c authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #22029 from eileenmcnaughton/action_set

Ensure action is set when loading contactFooter
parents eb08a171 984a2e3e
Branches
No related tags found
No related merge requests found
......@@ -162,6 +162,7 @@ abstract class CRM_Contact_Form_Inline extends CRM_Core_Form {
'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);
......
......@@ -12,7 +12,7 @@
<div class="crm-footer" id="crm-record-log">
<span class="col1">
{if !empty($external_identifier)}{ts}External ID{/ts}:&nbsp;{$external_identifier}{/if}
{if !isset($action) || (isset($action) && $action NEQ 2)}&nbsp; &nbsp;{ts}Contact ID{/ts}:&nbsp;{$contactId}{/if}
{if $action !== 2}&nbsp; &nbsp;{ts}Contact ID{/ts}:&nbsp;{$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}) &nbsp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment