Bugzilla – Attachment 178119 Details for
Bug 39011
Unable to search the holdings table (except home/holding libraries and barcode)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39011: Apply the pre-process to column filters
Bug-39011-Apply-the-pre-process-to-column-filters.patch (text/plain), 1.47 KB, created by
David Nind
on 2025-02-14 20:31:34 UTC
(
hide
)
Description:
Bug 39011: Apply the pre-process to column filters
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-02-14 20:31:34 UTC
Size:
1.47 KB
patch
obsolete
>From 286ebccb0258408ec512fdd02040c66678edce35 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 Feb 2025 10:07:40 +0100 >Subject: [PATCH] Bug 39011: Apply the pre-process to column filters > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 264db0a978..c3ad1d00f6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -587,10 +587,13 @@ function _dt_default_ajax(params) { > coded_datatype && > coded_datatype.length > 1 > ) { >- if (global_search.length) { >+ if (global_search.length || value.length) { > coded_datatype = coded_datatype[1]; >+ const search_value = value.length >+ ? value >+ : global_search; > const regex = new RegExp( >- `^${global_search}`, >+ `^${search_value}`, > "i" > ); > if ( >-- >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 39011
:
177465
|
177553
|
177556
|
177620
|
177702
|
177725
|
178033
|
178034
|
178118
|
178119
|
180264
|
180265
|
180266
|
180267
|
182175