From 8e4533291e9f127e20e4f8cc735bba4111c27b2d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 2 Nov 2023 09:48:26 +1300 Subject: [PATCH] Fix master-only-over-aggressive escaping --- templates/CRM/Price/Form/Field.tpl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/CRM/Price/Form/Field.tpl b/templates/CRM/Price/Form/Field.tpl index 6753cb9354..74a9cc2718 100644 --- a/templates/CRM/Price/Form/Field.tpl +++ b/templates/CRM/Price/Form/Field.tpl @@ -81,12 +81,12 @@
- + - + @@ -103,7 +103,7 @@
{$form.label.label|escape}{$form.label.label|smarty:nodefaults|purify} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field' field='label' id=$fid}{/if}{$form.label.html}
{$form.html_type.label|escape}{$form.html_type.label|smarty:nodefaults|purify} {$form.html_type.html}
- + - + {if $useForEvent} - + - + {/if} - + - + - +
{$form.price.label|escape} *{$form.price.label|smarty:nodefaults|purify} * {$form.price.html} {if $action neq 4}
{ts}Unit price.{/ts} {help id="id-negative"} @@ -111,25 +111,25 @@
{$form.non_deductible_amount.label|escape}{$form.non_deductible_amount.label|smarty:nodefaults|purify} {$form.non_deductible_amount.html}
{$form.count.label|escape}{$form.count.label|smarty:nodefaults|purify} {$form.count.html}
{ts}Enter a value here if you want to increment the number of registered participants per unit against the maximum number of participants allowed for this event.{/ts} {help id="id-participant-count"}
{$form.max_value.label|escape}{$form.max_value.label|smarty:nodefaults|purify} {$form.max_value.html}
{$form.financial_type_id.label|escape}*{$form.financial_type_id.label|smarty:nodefaults|purify}* {if !$financialType} {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture} @@ -169,7 +169,7 @@
{$form.help_pre.label|escape}{$form.help_pre.label|smarty:nodefaults|purify} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field' field='help_pre' id=$fid}{/if}{$form.help_pre.html|crmAddClass:huge}  {if $action neq 4}
{ts}Explanatory text displayed to users at the beginning of this field.{/ts}
@@ -178,7 +178,7 @@
{$form.help_post.label|escape}{$form.help_post.label|smarty:nodefaults|purify} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field' field='help_post' id=$fid}{/if}{$form.help_post.html|crmAddClass:huge}  {if $action neq 4}
{ts}Explanatory text displayed to users below this field.{/ts}
@@ -243,7 +243,7 @@ {/literal} {* Give link to view/edit choice options if in edit mode and html_type is one of the multiple choice types *} -{if $action eq 2 AND ($form.data_type.value.1.0 eq 'CheckBox' OR $form.data_type.value.1.0 eq 'Radio' OR $form.data_type.value.1.0 eq 'Select')} +{if $action eq 2 AND array_key_exists('data_type', $form) && ($form.data_type.value.1.0 eq 'CheckBox' OR $form.data_type.value.1.0 eq 'Radio' OR $form.data_type.value.1.0 eq 'Select')} -- 2.25.1