From e6916de5320790a828992082299a66afbddf4766 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 15 May 2022 18:44:16 +0200 Subject: [PATCH] do not list column to available columns list if not visible Signed-off-by: Michael Kaufmann --- lib/Froxlor/UI/Listing.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Froxlor/UI/Listing.php b/lib/Froxlor/UI/Listing.php index ad330029..d35fb2fb 100644 --- a/lib/Froxlor/UI/Listing.php +++ b/lib/Froxlor/UI/Listing.php @@ -194,6 +194,9 @@ class Listing $result = []; if (isset($tabellisting['columns'])) { foreach ($tabellisting['columns'] as $column => $coldata) { + if (isset($coldata['visible']) && !$coldata['visible']) { + continue; + } $result[$column] = [ 'label' => $coldata['label'], 'checked' => in_array($column, $tabellisting['visible_columns']),