Bugzilla – Attachment 87123 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.47 KB, created by
Liz Rea
on 2019-03-27 21:16:35 UTC
(
hide
)
Description:
Bug 22596: use raw TT filter in items search with custom field
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-03-27 21:16:35 UTC
Size:
1.47 KB
patch
obsolete
>From ecd06296a1b8720306ea4d92b1fd1c325dcc992f 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 > >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> >--- > 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