From cfa17e1bc5feaf887fa543d0ebabb1c2b0328339 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 Signed-off-by: Lucas Gass (cherry picked from commit 9af7d9dfd7452a166b7ff20771d001894a1ec721) Signed-off-by: Paul Derscheid --- 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 b20813f4d9..341cf26f8f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -1038,7 +1038,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}$`; }