From 9da51b0eaa5d0ab453e0c8f241ea0083f406b75b Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 26 Jul 2021 11:14:02 -0400 Subject: [PATCH] smarty notices --- templates/CRM/Case/Form/Case.tpl | 2 +- templates/CRM/Form/attachment.tpl | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Case/Form/Case.tpl b/templates/CRM/Case/Form/Case.tpl index 08c79e523c..5812bcab0f 100644 --- a/templates/CRM/Case/Form/Case.tpl +++ b/templates/CRM/Case/Form/Case.tpl @@ -90,7 +90,7 @@ {/if} -{if $form.tag.html} +{if !empty($form.tag.html)} {$form.tag.label}
{$form.tag.html}
diff --git a/templates/CRM/Form/attachment.tpl b/templates/CRM/Form/attachment.tpl index d34f68ac25..87b74efe47 100644 --- a/templates/CRM/Form/attachment.tpl +++ b/templates/CRM/Form/attachment.tpl @@ -51,13 +51,13 @@
{ts}Browse to the file you want to upload.{/ts}{if $maxAttachments GT 1} {ts 1=$maxAttachments}You can have a maximum of %1 attachment(s).{/ts}{/if} {ts 1=$config->maxFileSize}Each file must be less than %1M in size. You can also add a short description.{/ts}
- {if $form.tag_1.html} + {if !empty($form.tag_1.html)} {$form.tag_1.label}
{$form.tag_1.html}
{/if} - {if $tagsetInfo.file} + {if !empty($tagsetInfo.file)} {include file="CRM/common/Tagset.tpl" tagsetType='file' tableLayout=true tagsetElementName="file_taglist_1"} {/if} {section name=attachLoop start=2 loop=$numAttachments+1} @@ -70,11 +70,13 @@ {$form.attachFile_1.label} {$form.$attachName.html} {$form.$attachDesc.html} + {if !empty($form.$tagElement.html)} {$form.$tagElement.label}
{$form.$tagElement.html}
- {if $tagsetInfo.file} + {/if} + {if !empty($tagsetInfo.file)} {include file="CRM/common/Tagset.tpl" tagsetType='file' tableLayout=true tagsetElementName="file_taglist_$index"} {/if} {/section} -- 2.25.1