typo, but pre_html_text is never used in universe
authordemeritcowboy <demeritcowboy@hotmail.com>
Mon, 25 Sep 2023 03:25:25 +0000 (23:25 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Mon, 25 Sep 2023 03:25:25 +0000 (23:25 -0400)
CRM/Core/Form/EntityFormTrait.php
templates/CRM/Core/Form/Field.tpl

index f6173a4e640ed563a48b6d259af23118eaa45c20..bafa4d74793d8ee74c4d58bece484c6d6726f1d3 100644 (file)
@@ -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' => ''],
index db814280d120ab1a45cf564b65e73f95c1558650..966863f27797b9f5b694c8f6614e836ee2b8b438 100644 (file)
@@ -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}
   </td>
   <td>
-    {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}<br />
+    {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}<br />
     {if $fieldSpec.description}<span class="description">{$fieldSpec.description}</span>{/if}
     {if array_key_exists('documentation_link', $fieldSpec) && $fieldSpec.documentation_link.page}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if}
   </td>