From d2813f1ad32765af40dec214f6f9d26ae48ebb84 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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