From 619a1e537bfb8f4ffce24e6a94df735c4e018d65 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 9 Oct 2024 11:43:08 +0200 Subject: [PATCH] Bug 33484: Fix category select Signed-off-by: Pedro Amorim Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index b9f7a90973..c560bd729b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -855,10 +855,10 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) { $(th).removeClass('sorting').removeClass("sorting_asc").removeClass("sorting_desc"); if ( is_searchable ) { let input_type = 'input'; + let existing_search = column.search(); if ( $(th).data('filter') || filters_options.hasOwnProperty(i)) { input_type = 'select' let filter_type = $(th).data('filter'); - let existing_search = column.search(); let select = $(''.format(existing_search) ); } else { -- 2.39.5