diff --git a/templates/CRM/Contact/Page/DashBoardDashlet.tpl b/templates/CRM/Contact/Page/DashBoardDashlet.tpl index ac2ed7af3f23..aaf2ab62b08e 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 cec6c6271623..01c4c922731c 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 cc280174c07a..e9068d974ffd 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}