Skip to content

Commit

Permalink
Merge pull request #20595 from seamuslee001/fix_invoke_test
Browse files Browse the repository at this point in the history
[php8-compact] Fix failing CRM_Core_InvokeTest on php8
  • Loading branch information
eileenmcnaughton authored Jun 14, 2021
2 parents 219803e + e3b005d commit c74272f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/CRM/Contact/Page/DashBoardDashlet.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*}
{include file="CRM/common/chart.tpl"}
{* Alerts for critical configuration settings. *}
{$communityMessages}
{$communityMessages|default:''}
<div class="clear"></div>
<div class="crm-block crm-content-block">

Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Form/body.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div>{$form.hidden}</div>
{/if}

{if ($snippet !== 'json') and !$suppressForm and count($form.errors) gt 0}
{if ($snippet !== 'json') and empty($suppressForm) and count($form.errors) gt 0}
<div class="messages crm-error">
<i class="crm-i fa-exclamation-triangle crm-i-red" aria-hidden="true"></i>
{ts}Please correct the following errors in the form fields below:{/ts}
Expand Down
4 changes: 2 additions & 2 deletions templates/CRM/Form/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if ! $suppressForm}
{if empty($suppressForm)}
<form {$form.attributes} >
{crmRegion name='form-top'}{/crmRegion}
{/if}
Expand All @@ -18,7 +18,7 @@
{include file=$tplFile}
{/crmRegion}

{if ! $suppressForm}
{if empty($suppressForm)}
{crmRegion name='form-bottom'}{/crmRegion}
</form>
{/if}

0 comments on commit c74272f

Please sign in to comment.