Bugzilla – Attachment 176824 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.06 KB, created by
Jonathan Druart
on 2025-01-20 15:08:08 UTC
(
hide
)
Description:
Bug 36025: Fix failure when pref is off
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-01-20 15:08:08 UTC
Size:
1.06 KB
patch
obsolete
>From d1341b4b99a0a702454a219ec0cf4c221f46c0ba 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" >--- > 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 1e050dc4d83..06540ae8ef5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -860,6 +860,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