do not list column to available columns list if not visible

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-15 18:44:16 +02:00
parent 14d5c9da6c
commit e6916de532

View File

@@ -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']),