Skip to content

Commit

Permalink
fix(section): name encoding in designer and rendered form"
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Sep 19, 2022
1 parent 1b669d4 commit 491dcb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/components/form/section_design.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{% if item.fields['name'] is empty %}
{% set name = '(' ~ item.fields['id'] ~ ')' %}
{% else %}
{% set name = item.fields['name'] %}
{% set name = call('Glpi\\Toolbox\\Sanitizer::unsanitize', [item.fields['name']]) %}
{% endif %}
<span data-field="name">{{ name }}</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/pages/userform.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{% if section.fields['name'] == '' %}
({{ sectionId }})
{% else %}
{{ __(section.fields['name'], options.domain) }}
{{ call('Glpi\\Toolbox\\Sanitizer::unsanitize', [__(section.fields['name'], options.domain)]) }}
{% endif %}
</h2>
</div>
Expand Down

0 comments on commit 491dcb6

Please sign in to comment.