do not list column to available columns list if not visible
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -194,6 +194,9 @@ class Listing
|
|||||||
$result = [];
|
$result = [];
|
||||||
if (isset($tabellisting['columns'])) {
|
if (isset($tabellisting['columns'])) {
|
||||||
foreach ($tabellisting['columns'] as $column => $coldata) {
|
foreach ($tabellisting['columns'] as $column => $coldata) {
|
||||||
|
if (isset($coldata['visible']) && !$coldata['visible']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$result[$column] = [
|
$result[$column] = [
|
||||||
'label' => $coldata['label'],
|
'label' => $coldata['label'],
|
||||||
'checked' => in_array($column, $tabellisting['visible_columns']),
|
'checked' => in_array($column, $tabellisting['visible_columns']),
|
||||||
|
|||||||
Reference in New Issue
Block a user