From 9e597ccbe850bfe96b5971f284f7e17cd4ab7bfa Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 8 Oct 2024 13:49:59 +0200 Subject: [PATCH] Bug 33484: Fix pending orders Sometimes 'this' is the DOM element, for instance on the pending orders table. Signed-off-by: Pedro Amorim Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- 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 31e61f3463c..73a0d1eea4f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -843,7 +843,7 @@ function _dt_on_visibility(add_filters, table_node, table_dt){ function _dt_add_filters(table_node, table_dt, filters_options = {}) { - if (!table_node.length) return; + if (!$(table_node).length) return; $(table_node).find('thead tr:eq(1)').remove(); // Remove if one exists already $(table_node).find('thead tr').clone().appendTo( $(table_node).find('thead') ); -- 2.34.1