Bugzilla – Attachment 186903 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]
Bug 40565: (follow-up) Make sure there is a table_node
Bug-40565-follow-up-Make-sure-there-is-a-tablenode.patch (text/plain), 1.55 KB, created by
Lucas Gass (lukeg)
on 2025-09-24 22:10:10 UTC
(
hide
)
Description:
Bug 40565: (follow-up) Make sure there is a table_node
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-09-24 22:10:10 UTC
Size:
1.55 KB
patch
obsolete
>From 9dba739abd377412d619799b47b0617a26087bff Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 24 Sep 2025 22:08:51 +0000 >Subject: [PATCH] Bug 40565: (follow-up) Make sure there is a table_node > >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index b20813f4d9c..0e8a12b23f5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -1035,12 +1035,14 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) { > }) > .each(function () { > let optionValue = this._id; >- >- if ( >- table_dt.settings()[0].ajax !== null && >- table_node.attr("id") !== "item_search" >- ) { >- 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}$`; >+ } > } > > let o = $( >-- >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 40565
:
184924
|
184973
|
186744
| 186903 |
186911
|
186912