Bugzilla – Attachment 186911 Details for
Bug 40565
Column filters on the item search do not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Revert "Bug 40565: (follow-up) Make sure there is a table_node"
Revert-Bug-40565-follow-up-Make-sure-there-is-a-ta.patch (text/plain), 1.63 KB, created by
Jonathan Druart
on 2025-09-25 10:38:28 UTC
(
hide
)
Description:
Revert "Bug 40565: (follow-up) Make sure there is a table_node"
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-25 10:38:28 UTC
Size:
1.63 KB
patch
obsolete
>From 3f4cfb975726ae3ef2d8b4e7bf7ffa630c83cd8a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 25 Sep 2025 12:17:03 +0200 >Subject: [PATCH] Revert "Bug 40565: (follow-up) Make sure there is a > table_node" > >This reverts commit addd5e3a0d32e227834c02c2b16ac735decb80fa. >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index b03b44a9784..4b6d178bcb5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -1037,14 +1037,12 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) { > }) > .each(function () { > let optionValue = this._id; >- if (table_dt.settings()[0].ajax !== null) { >- let tableId = >- table_node && table_node.id >- ? table_node.id >- : null; >- if (tableId && tableId !== "item_search") { >- optionValue = `^${this._id}$`; >- } >+ >+ if ( >+ table_dt.settings()[0].ajax !== null && >+ table_node.attr("id") !== "item_search" >+ ) { >+ optionValue = `^${this._id}$`; > } > > let o = $( >-- >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 40565
:
184924
|
184973
|
186744
|
186903
| 186911 |
186912