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 <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-10-29 10:14:02 +01:00 committed by Katrin Fischer
parent e7ae98af67
commit c0ed7b89db
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 4 additions and 10 deletions

View File

@ -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
];