From: Eileen McNaughton Date: Wed, 10 Nov 2021 20:18:10 +0000 (+1300) Subject: Ensure action is set when loading contactFooter X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=984a2e3e8ef2c26544db506e820e5e7b81d1a649;p=civicrm-core.git Ensure action is set when loading contactFooter --- diff --git a/CRM/Contact/Form/Inline.php b/CRM/Contact/Form/Inline.php index 2f551a1cea..ea93dde40d 100644 --- a/CRM/Contact/Form/Inline.php +++ b/CRM/Contact/Form/Inline.php @@ -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); diff --git a/templates/CRM/common/contactFooter.tpl b/templates/CRM/common/contactFooter.tpl index 76cc62b511..d87f279f97 100644 --- a/templates/CRM/common/contactFooter.tpl +++ b/templates/CRM/common/contactFooter.tpl @@ -12,7 +12,7 @@