From c0ed7b89db793f992495af9dee303eecfbd457b2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 29 Oct 2024 10:14:02 +0100 Subject: [PATCH] Bug 33484: Remove state settings from column level default_save_state and default_save_state_search were added at the column level, it's not needed. Signed-off-by: Katrin Fischer --- C4/Utils/DataTables/TablesSettings.pm | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/C4/Utils/DataTables/TablesSettings.pm b/C4/Utils/DataTables/TablesSettings.pm index af35c49039..0d2f87f39e 100644 --- a/C4/Utils/DataTables/TablesSettings.pm +++ b/C4/Utils/DataTables/TablesSettings.pm @@ -60,16 +60,10 @@ sub get_columns { $columns = [ map { { - cannot_be_toggled => exists $_->{cannot_be_toggled} ? $_->{cannot_be_toggled} : 0, - cannot_be_modified => exists $_->{cannot_be_modified} ? $_->{cannot_be_modified} : 0, - is_hidden => exists $_->{is_hidden} ? $_->{is_hidden} : 0, - default_save_state => exists $_->{default_save_state} ? $_->{default_save_state} : 1, - default_save_state_search => exists $_->{default_save_state_search} - && exists $_->{default_save_state} - && $_->{default_save_state} # We need default_save_state - ? $_->{default_save_state_search} - : 0, - columnname => $_->{columnname}, + cannot_be_toggled => exists $_->{cannot_be_toggled} ? $_->{cannot_be_toggled} : 0, + cannot_be_modified => exists $_->{cannot_be_modified} ? $_->{cannot_be_modified} : 0, + is_hidden => exists $_->{is_hidden} ? $_->{is_hidden} : 0, + columnname => $_->{columnname}, } } @$columns ]; -- 2.39.5