Bugzilla – Attachment 138179 Details for
Bug 31246
<span> displayed in 'Additional fields' section
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31246: <span> displayed in 'Additional fields' section
Bug-31246-span-displayed-in-Additional-fields-sect.patch (text/plain), 1.81 KB, created by
Biblibre Sandboxes
on 2022-07-27 13:18:12 UTC
(
hide
)
Description:
Bug 31246: <span> displayed in 'Additional fields' section
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2022-07-27 13:18:12 UTC
Size:
1.81 KB
patch
obsolete
>From 6016cbdb71732575ca6bdcc817ce332b96fda314 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 27 Jul 2022 09:54:19 -0300 >Subject: [PATCH] Bug 31246: <span> displayed in 'Additional fields' section >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >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 <span> </span> texts in there >2. Apply this patch >3. Reload >=> SUCCESS: Things display nicely again! >4. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com> >--- > .../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' %] > <title> >@@ -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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31246
:
138176
|
138179
|
138190