From 46de51586b90ffb00e617d144bb353206342e5aa Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 17 Jan 2022 21:04:27 +1300 Subject: [PATCH] Fix smarty notices in footer files --- CRM/Core/Form.php | 9 +++++++++ CRM/Core/Page.php | 3 +++ templates/CRM/common/contactFooter.tpl | 8 ++++---- templates/CRM/common/footer.tpl | 2 +- tests/phpunit/Civi/Test/ExampleHookTest.php | 18 +++++++++++++----- 5 files changed, 30 insertions(+), 10 deletions(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 829085db1a..8ab1c22a08 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -281,6 +281,15 @@ class CRM_Core_Form extends HTML_QuickForm_Page { 'context', // FormButtons.tpl (adds buttons to forms). 'linkButtons', + // Required for contactFooter.tpl. + // See CRM_Activity_Form_ActivityTest:testInboundEmailDisplaysWithLineBreaks. + 'external_identifier', + 'lastModified', + 'created_date', + 'changeLog', + // Required for footer.tpl, + // See CRM_Activity_Form_ActivityTest:testInboundEmailDisplaysWithLineBreaks. + 'footer_status_severity', ]; /** diff --git a/CRM/Core/Page.php b/CRM/Core/Page.php index 99742ac99c..e3aadfebcd 100644 --- a/CRM/Core/Page.php +++ b/CRM/Core/Page.php @@ -124,6 +124,9 @@ class CRM_Core_Page { 'breadcrumb', 'pageTitle', 'isDeleted', + // Required for footer.tpl, + // See ExampleHookTest:testPageOutput. + 'footer_status_severity', ]; /** diff --git a/templates/CRM/common/contactFooter.tpl b/templates/CRM/common/contactFooter.tpl index d87f279f97..db1f334b77 100644 --- a/templates/CRM/common/contactFooter.tpl +++ b/templates/CRM/common/contactFooter.tpl @@ -11,15 +11,15 @@ {strip} {/strip} diff --git a/templates/CRM/common/footer.tpl b/templates/CRM/common/footer.tpl index 4399e31d94..ddae7088b1 100644 --- a/templates/CRM/common/footer.tpl +++ b/templates/CRM/common/footer.tpl @@ -16,7 +16,7 @@