From: Seamus Lee Date: Tue, 8 Jun 2021 01:02:08 +0000 (+0000) Subject: [php8-compact] Add in guards into various templates to fix issues in test runs on... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a46d6a12d289f2d953d9b563bec638593f6b08f2;p=civicrm-core.git [php8-compact] Add in guards into various templates to fix issues in test runs on php8 --- diff --git a/templates/CRM/Group/Form/Edit.tpl b/templates/CRM/Group/Form/Edit.tpl index 8c9a85bb1c..d0fe28bf39 100644 --- a/templates/CRM/Group/Form/Edit.tpl +++ b/templates/CRM/Group/Form/Edit.tpl @@ -22,7 +22,7 @@ {$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_group' field='title' id=$group.id}{/if} {$form.title.html|crmAddClass:huge} - {if $group.saved_search_id} ({ts}Smart Group{/ts}){/if} + {if !empty($group.saved_search_id)} ({ts}Smart Group{/ts}){/if} @@ -36,7 +36,7 @@ {$form.frontend_title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_group' field='frontend_title' id=$group.id}{/if} {$form.frontend_title.html|crmAddClass:huge} - {if $group.saved_search_id} ({ts}Smart Group{/ts}){/if} + {if !empty($group.saved_search_id)} ({ts}Smart Group{/ts}){/if} @@ -69,14 +69,14 @@ {$form.is_active.html} - {if $group.created_by} + {if !empty($group.created_by)} {ts}Created By{/ts} {$group.created_by} {/if} - {if $group.modified_by} + {if !empty($group.modified_by)} {ts}Modified By{/ts} {$group.modified_by} @@ -105,10 +105,10 @@ {literal}