From ec6fdb9fbad71ab8342f89a14c62155192e7c8ea Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 23 Sep 2023 14:12:10 +1200 Subject: [PATCH] Fix those pesky field notices ...again --- templates/CRM/Core/Form/Field.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Core/Form/Field.tpl b/templates/CRM/Core/Form/Field.tpl index e9237ff450..db814280d1 100644 --- a/templates/CRM/Core/Form/Field.tpl +++ b/templates/CRM/Core/Form/Field.tpl @@ -7,16 +7,16 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if $fieldSpec.template} +{if array_key_exists('template', $fieldSpec) && $fieldSpec.template} {include file=$fieldSpec.template} {else} {$form.$fieldName.label} - {if $fieldSpec.help.id}{help id=$fieldSpec.help.id file=$fieldSpec.help.file}{/if} + {if array_key_exists('help', $fieldSpec) && $fieldSpec.help.id}{help id=$fieldSpec.help.id file=$fieldSpec.help.file}{/if} {if $action == 2 && array_key_exists('is_add_translate_dialog', $fieldSpec)}{include file='CRM/Core/I18n/Dialog.tpl' table=$entityTable field=$fieldName id=$entityID}{/if} - {if $fieldSpec.pre_html_text}{$fieldSpec.pre_html_text}{/if}{if $form.$fieldName.html}{$form.$fieldName.html}{else}{$fieldSpec.place_holder}{/if}{if $fieldSpec.post_html_text}{$fieldSpec.post_html_text}{/if}
+ {if array_key_exists('pre_html', $fieldSpec) && $fieldSpec.pre_html_text}{$fieldSpec.pre_html_text}{/if}{if $form.$fieldName.html}{$form.$fieldName.html}{else}{$fieldSpec.place_holder}{/if}{if array_key_exists('post_html', $fieldSpec) && $fieldSpec.post_html_text}{$fieldSpec.post_html_text}{/if}
{if $fieldSpec.description}{$fieldSpec.description}{/if} - {if $fieldSpec.documentation_link.page}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if} + {if array_key_exists('documentation_link', $fieldSpec) && $fieldSpec.documentation_link.page}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if} {/if} -- 2.25.1