From ce4a2f631061725ba8b784bf52d1aba716e443e1 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sun, 24 Sep 2023 23:25:25 -0400 Subject: [PATCH] typo, but pre_html_text is never used in universe --- CRM/Core/Form/EntityFormTrait.php | 1 - templates/CRM/Core/Form/Field.tpl | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/Form/EntityFormTrait.php b/CRM/Core/Form/EntityFormTrait.php index f6173a4e64..bafa4d7479 100644 --- a/CRM/Core/Form/EntityFormTrait.php +++ b/CRM/Core/Form/EntityFormTrait.php @@ -176,7 +176,6 @@ trait CRM_Core_Form_EntityFormTrait { $this->entityFields[$index] = array_replace_recursive([ 'template' => '', 'help' => ['id' => '', 'file' => ''], - 'pre_html_text' => '', 'post_html_text' => '', 'description' => '', 'documentation_link' => ['page' => '', 'resource' => ''], diff --git a/templates/CRM/Core/Form/Field.tpl b/templates/CRM/Core/Form/Field.tpl index db814280d1..966863f277 100644 --- a/templates/CRM/Core/Form/Field.tpl +++ b/templates/CRM/Core/Form/Field.tpl @@ -15,7 +15,7 @@ {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 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 $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 array_key_exists('documentation_link', $fieldSpec) && $fieldSpec.documentation_link.page}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if} -- 2.25.1