Bugzilla – Attachment 87170 Details for
Bug 22596
html TT filter is breaking items search with custom field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22596: use raw TT filter in items search with custom field
Bug-22596-use-raw-TT-filter-in-items-search-with-c.patch (text/plain), 1.57 KB, created by
Marcel de Rooy
on 2019-03-29 10:22:34 UTC
(
hide
)
Description:
Bug 22596: use raw TT filter in items search with custom field
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-03-29 10:22:34 UTC
Size:
1.57 KB
patch
obsolete
>From e5a0ab64045bf0ee486d91a95af8bf23f49ac418 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 27 Mar 2019 15:37:51 +0100 >Subject: [PATCH] Bug 22596: use raw TT filter in items search with custom > field >Content-Type: text/plain; charset=utf-8 > >When items search is with a custom field using authorised values, html TT filter is breaking the JS, it should use raw. > >Test plan : >1) Go to Administration > Item search fields >2) Define a search field with an authorised values category >3) Go to items search >4) Use the "New field" link >5) Check use of custom field is OK > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index 03256bced3..ab3c027c5c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -219,7 +219,7 @@ > [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] > [% Asset.js("lib/hc-sticky.js") | $raw %] > <script type="text/javascript"> >- var authorised_values = [% authorised_values_json | html %]; >+ var authorised_values = [% authorised_values_json | $raw %]; > > function loadAuthorisedValuesSelect(select) { > var selected = select.find('option:selected'); >-- >2.11.0
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 22596
:
87071
|
87123
| 87170