Skip to content

Commit

Permalink
Do not escape hierarchical select
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eileenmcnaughton committed Mar 20, 2022
1 parent 7ae979d commit b0d4639
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/CRM/Activity/Import/Form/MapTable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
{$form.mapper[$i].html}
{$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>

Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contact/Import/Form/MapTable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
{*/if*}
{/if}
{else}
{$form.mapper[$i].html}
{$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>

Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contact/Import/Form/Mapper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<dl>
{section name=count start=1 loop=`$maxMapper`}
{assign var='i' value=$smarty.section.count.index}
<dt>{$form.mapper[$i].label}</dt><dd>{$form.mapper[$i].html}<span class="tundra" id="id_map_mapper[{$i}]_1"><span id="id_mapper[{$i}]_1"></span></span><span class="tundra" id="id_map_mapper[{$i}]_2"><span id="id_mapper[{$i}]_2"></span></span><span class="tundra" id="id_map_mapper[{$i}]_3"><span id="id_mapper[{$i}]_3"></span></span></dd>
<dt>{$form.mapper[$i].label}</dt><dd>{$form.mapper[$i].html|smarty:nodefaults}<span class="tundra" id="id_map_mapper[{$i}]_1"><span id="id_mapper[{$i}]_1"></span></span><span class="tundra" id="id_map_mapper[{$i}]_2"><span id="id_mapper[{$i}]_2"></span></span><span class="tundra" id="id_map_mapper[{$i}]_3"><span id="id_mapper[{$i}]_3"></span></span></dd>

{literal}
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contribute/Import/Form/MapTable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{$mapper[$i]}
{/if}
{else}
{$form.mapper[$i].html}
{$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>

Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Custom/Form/Group.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</tr>
<tr>
<td class="label">{$form.extends.label}</td>
<td>{$form.extends.html} {help id="id-extends"}</td>
<td>{$form.extends.html|smarty:nodefaults} {help id="id-extends"}</td>
</tr>
<tr>
<td class="label">{$form.weight.label}</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Event/Import/Form/MapTable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
{$form.mapper[$i].html}
{$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>

Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Member/Import/Form/MapTable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
{$form.mapper[$i].html}
{$form.mapper[$i].html|smarty:nodefaults}
{/if}
</td>

Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/UF/Form/Field.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<table class="form-layout-compressed">
<tr class="crm-uf-field-form-block-field_name">
<td class="label">{$form.field_name.label} {help id='field_name_0'}</td>
<td>{$form.field_name.html}<br />
<td>{$form.field_name.html|smarty:nodefaults}<br />
<span class="description">&nbsp;{ts}Select the type of CiviCRM record and the field you want to include in this Profile.{/ts}</span></td>
</tr>
<tr class="crm-uf-field-form-block-label">
Expand Down

0 comments on commit b0d4639

Please sign in to comment.