Bugzilla – Attachment 178039 Details for
Bug 36025
Extended attributes clause added to patron search query even when there are no searchable attributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36025: Fix failure when pref is off
Bug-36025-Fix-failure-when-pref-is-off.patch (text/plain), 1.13 KB, created by
Magnus Enger
on 2025-02-13 16:27:47 UTC
(
hide
)
Description:
Bug 36025: Fix failure when pref is off
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2025-02-13 16:27:47 UTC
Size:
1.13 KB
patch
obsolete
>From e653c796323e285b8aa2620f65b782e1a5e29b58 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 20 Jan 2025 10:17:43 +0100 >Subject: [PATCH] Bug 36025: Fix failure when pref is off > >Prevent JS error if ExtendedPatronAttributes is off > "Uncaught TypeError: options.extended_attribute_types is undefined" > >Signed-off-by: Magnus Enger <magnus@libriotech.no> >Makes the Cypress tests pass. >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index b7db78aecf..630079edf0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -909,6 +909,7 @@ function buildPatronSearchQuery(term, options) { > if ( > typeof options !== "undefined" && > ((options.search_fields == "standard" && >+ options.extended_attribute_types && > options.extended_attribute_types.length > 0) || > searched_attribute_fields.length > 0) && > extendedPatronAttributes >-- >2.34.1
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 36025
:
161873
|
161874
|
161914
|
161915
|
175917
|
175918
|
175952
|
176747
|
176748
|
176823
|
176824
|
178037
|
178038
|
178039
|
178081
|
178082
|
178083