From 1ce81043ca1abbfcfc21ec3aca6d162dadad20ba Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 27 Jul 2022 09:54:19 -0300 Subject: [PATCH] Bug 31246: displayed in 'Additional fields' section MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch avoids escaping HMTL data in the additional fields section. To test: 1. Open the additional fields section http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/admin/additional-fields.pl => FAIL: there are some nasty texts in there 2. Apply this patch 3. Reload => SUCCESS: Things display nicely again! 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: Emmanuel Bétemps Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Tomas Cohen Arazi (cherry picked from commit a7272f988679904d3f018550a73719fc102b3425) Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/admin/additional-fields.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt index 21d968fcd7..2d27a06ac8 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt @@ -1,4 +1,5 @@ [% USE AuthorisedValues %] +[% USE raw %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -105,7 +106,7 @@ <h1>Additional fields</h1> <p>Select a table:</p> [% BLOCK table_option %] - <li><a href="?tablename=[% value | uri %]">[% content | html %] (<span class="ex">[% value | html %]</span>)</a></li> + <li><a href="?tablename=[% value | uri %]">[% content | $raw %] (<span class="ex">[% value | html %]</span>)</a></li> [% END %] <ul> [% IF CAN_user_acquisition_order_manage %] -- 2.39.5