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 <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 5804de2463e924dd660b4dc84caaa394f111a139)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
David Cook 2023-11-02 01:37:35 +00:00 committed by Fridolin Somers
parent e4c9448207
commit e63c57c3d0

View file

@ -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) {