Bugzilla – Attachment 158721 Details for
Bug 35303
Staff interface header - patron search autocomplete no longer works (Uncaught TypeError: search_fields.forEach is not a function)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35303: (bug 26916 follow-up) Fix paton autocomplete
Bug-35303-bug-26916-follow-up-Fix-paton-autocomple.patch (text/plain), 1.07 KB, created by
David Nind
on 2023-11-09 14:36:14 UTC
(
hide
)
Description:
Bug 35303: (bug 26916 follow-up) Fix paton autocomplete
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-11-09 14:36:14 UTC
Size:
1.07 KB
patch
obsolete
>From 1cafc73ecaa5d860985a887893eeb7b793714ccc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 9 Nov 2023 15:10:39 +0100 >Subject: [PATCH] Bug 35303: (bug 26916 follow-up) Fix paton autocomplete > >Fix the following JS error: >Uncaught TypeError: search_fields.forEach is not a function > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 5ef5dbe7fd..8240ee84e9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -605,7 +605,7 @@ function buildPatronSearchQuery(term, options) { > }); > // If not, we use DefaultPatronSearchFields system preference instead > } else { >- search_fields = defaultPatronSearchFields; >+ search_fields = defaultPatronSearchFields.split('\|'); > } > > // Add each pattern for each search field >-- >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 35303
:
158717
|
158721
|
158742