From 793a1a34c89bad1d3761eefe8135065efbc7dc98 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 20 Jan 2023 18:50:49 -0500 Subject: [PATCH] CustomField - Fix smarty notices on field create/edit form The structure of the form was changed back in 2020 to stop using a hierarchical quickform select, so references to `$form.data_type.value.0` etc are no longer valid. This was resulting in massive smarty notices. This removes the offending clauses which were not doing anything as the show/hide is now handled by jQuery. --- templates/CRM/Custom/Form/Field.tpl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/CRM/Custom/Form/Field.tpl b/templates/CRM/Custom/Form/Field.tpl index 2045c371ba..c2e13ab33c 100644 --- a/templates/CRM/Custom/Form/Field.tpl +++ b/templates/CRM/Custom/Form/Field.tpl @@ -36,7 +36,7 @@ {$form.in_selector.html} {help id="id-in_selector"} {/if} - + {$form.text_length.label} {$form.text_length.html} @@ -67,31 +67,31 @@ {ts}Filter contact search results for this field using Contact get API parameters. EXAMPLE: To list Students in group 3:{/ts} "action=get&group=3&contact_sub_type=Student" {docURL page="dev/api"} - = 4 && $form.data_type.value.1.0 neq 'CheckBox' || $form.data_type.value.1.0 neq 'Radio' )}class="hiddenElement"{/if}> + {$form.options_per_line.label} {$form.options_per_line.html|crmAddClass:two} - + {$form.start_date_years.label} {$form.start_date_years.html} {ts}years prior to current date.{/ts} - + {$form.end_date_years.label} {$form.end_date_years.html} {ts}years after the current date.{/ts} - + {$form.date_format.label} {$form.date_format.html}   {$form.time_format.label}  {$form.time_format.html} - + {$form.note_rows.label} {$form.note_rows.html} - + {$form.note_columns.label} {$form.note_columns.html} - + {$form.note_length.label} {$form.note_length.html} {ts}Leave blank for unlimited. This limit is not implemented by all browsers and rich text editors.{/ts} @@ -104,11 +104,11 @@ {/if} - + {$form.default_value.label} {$form.default_value.html} - +   {ts}If you want to provide a default value for this field, enter it here. For date fields, format is YYYY-MM-DD.{/ts} -- 2.25.1