From e63c57c3d081da668f0cbde8082019c3b0aea3b4 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 2 Nov 2023 01:37:35 +0000 Subject: [PATCH] Bug 34913: Fix Activate/Deactive filters with table_filters.js This change prevents columnFilter from being called twice. If it's called twice, it compromises the formatting of the filters. Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize (cherry picked from commit 5804de2463e924dd660b4dc84caaa394f111a139) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/js/table_filters.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/table_filters.js b/koha-tmpl/intranet-tmpl/prog/js/table_filters.js index 6c8dff92ab..b915ac7fe3 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/table_filters.js +++ b/koha-tmpl/intranet-tmpl/prog/js/table_filters.js @@ -19,12 +19,6 @@ function activate_filters(id, bShowFilters) { ,'bFiltersAlreadyActivated': false }); filters_row.addClass('columnFilter'); - } else { - table.dataTable().columnFilter({ - 'sPlaceHolder': 'head:after' - , "columns": aoColumns - ,'bFiltersAlreadyActivated': true - }); } if (bShowFilters) { -- 2.39.2