From b0d4639d799fb3fbebc6cc73c27f57d5b5a0ca1d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 21 Mar 2022 10:29:28 +1300 Subject: [PATCH] Do not escape hierarchical select We already have 'cutouts' in the escape function to not escape assigned html. It isn't catching the hierarchical select elements - so I have marked a bunch to not be escaped. I could have handled in 'escape' but I think tpl handling is actually correct - the cutouts in the escape function was to get it to a more manageable level --- templates/CRM/Activity/Import/Form/MapTable.tpl | 2 +- templates/CRM/Contact/Import/Form/MapTable.tpl | 2 +- templates/CRM/Contact/Import/Form/Mapper.tpl | 2 +- templates/CRM/Contribute/Import/Form/MapTable.tpl | 2 +- templates/CRM/Custom/Form/Group.tpl | 2 +- templates/CRM/Event/Import/Form/MapTable.tpl | 2 +- templates/CRM/Member/Import/Form/MapTable.tpl | 2 +- templates/CRM/UF/Form/Field.tpl | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/CRM/Activity/Import/Form/MapTable.tpl b/templates/CRM/Activity/Import/Form/MapTable.tpl index 6ecd9c181db0..97f3b7a2f37d 100644 --- a/templates/CRM/Activity/Import/Form/MapTable.tpl +++ b/templates/CRM/Activity/Import/Form/MapTable.tpl @@ -48,7 +48,7 @@ {if $wizard.currentStepName == 'Preview'} {$mapper[$i]} {else} - {$form.mapper[$i].html} + {$form.mapper[$i].html|smarty:nodefaults} {/if} diff --git a/templates/CRM/Contact/Import/Form/MapTable.tpl b/templates/CRM/Contact/Import/Form/MapTable.tpl index 6eb7c6534611..20162b4cbc87 100644 --- a/templates/CRM/Contact/Import/Form/MapTable.tpl +++ b/templates/CRM/Contact/Import/Form/MapTable.tpl @@ -98,7 +98,7 @@ {*/if*} {/if} {else} - {$form.mapper[$i].html} + {$form.mapper[$i].html|smarty:nodefaults} {/if} diff --git a/templates/CRM/Contact/Import/Form/Mapper.tpl b/templates/CRM/Contact/Import/Form/Mapper.tpl index cc726d449618..d2fa2f052476 100644 --- a/templates/CRM/Contact/Import/Form/Mapper.tpl +++ b/templates/CRM/Contact/Import/Form/Mapper.tpl @@ -15,7 +15,7 @@
{section name=count start=1 loop=`$maxMapper`} {assign var='i' value=$smarty.section.count.index} -
{$form.mapper[$i].label}
{$form.mapper[$i].html}
+
{$form.mapper[$i].label}
{$form.mapper[$i].html|smarty:nodefaults}
{literal}