Bugzilla – Attachment 186912 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: Correctly fix the retrieval of 'id'
Bug-40565-Correctly-fix-the-retrieval-of-id.patch (text/plain), 1.16 KB, created by
Jonathan Druart
on 2025-09-25 10:38:30 UTC
(
hide
)
Description:
Bug 40565: Correctly fix the retrieval of 'id'
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-25 10:38:30 UTC
Size:
1.16 KB
patch
obsolete
>From d2813f1ad32765af40dec214f6f9d26ae48ebb84 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 25 Sep 2025 12:26:41 +0200 >Subject: [PATCH] Bug 40565: Correctly fix the retrieval of 'id' > >For other tables than those from Vue apps, table_node is the node and we >need to retrieve the object before accessing the attr function >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 4b6d178bcb5..0b5511be2eb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -1040,7 +1040,7 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) { > > if ( > table_dt.settings()[0].ajax !== null && >- table_node.attr("id") !== "item_search" >+ $(table_node)?.attr("id") !== "item_search" > ) { > optionValue = `^${this._id}$`; > } >-- >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