Bugzilla – Attachment 178083 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.23 KB, created by
Marcel de Rooy
on 2025-02-14 08:33:52 UTC
(
hide
)
Description:
Bug 36025: Fix failure when pref is off
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-02-14 08:33:52 UTC
Size:
1.23 KB
patch
obsolete
>From fa34777f707aaa1be9a35c76216e24d5d4a4fb2a 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 >Content-Type: text/plain; charset=utf-8 > >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. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 b219551f6f..c4fbfcd658 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.39.5
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