From e3b005d0b9cad977b1cf263a4b6ffde82385b8e9 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 14 Jun 2021 05:30:45 +0000 Subject: [PATCH] [php8-compact] Fix failing CRM_Core_InvokeTest on php8 --- templates/CRM/Contact/Page/DashBoardDashlet.tpl | 2 +- templates/CRM/Form/body.tpl | 2 +- templates/CRM/Form/default.tpl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Contact/Page/DashBoardDashlet.tpl b/templates/CRM/Contact/Page/DashBoardDashlet.tpl index ac2ed7af3f..aaf2ab62b0 100644 --- a/templates/CRM/Contact/Page/DashBoardDashlet.tpl +++ b/templates/CRM/Contact/Page/DashBoardDashlet.tpl @@ -9,7 +9,7 @@ *} {include file="CRM/common/chart.tpl"} {* Alerts for critical configuration settings. *} -{$communityMessages} +{$communityMessages|default:''}
diff --git a/templates/CRM/Form/body.tpl b/templates/CRM/Form/body.tpl index cec6c62716..01c4c92273 100644 --- a/templates/CRM/Form/body.tpl +++ b/templates/CRM/Form/body.tpl @@ -15,7 +15,7 @@
{$form.hidden}
{/if} -{if ($snippet !== 'json') and !$suppressForm and count($form.errors) gt 0} +{if ($snippet !== 'json') and empty($suppressForm) and count($form.errors) gt 0}
{ts}Please correct the following errors in the form fields below:{/ts} diff --git a/templates/CRM/Form/default.tpl b/templates/CRM/Form/default.tpl index cc280174c0..e9068d974f 100644 --- a/templates/CRM/Form/default.tpl +++ b/templates/CRM/Form/default.tpl @@ -7,7 +7,7 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if ! $suppressForm} +{if empty($suppressForm)}
{crmRegion name='form-top'}{/crmRegion} {/if} @@ -18,7 +18,7 @@ {include file=$tplFile} {/crmRegion} -{if ! $suppressForm} +{if empty($suppressForm)} {crmRegion name='form-bottom'}{/crmRegion}
{/if} -- 2.25.1