Skip to content

Commit 92ed603

Browse files
committed
Make sure visible-flag of columns defaults to true
1 parent cef123f commit 92ed603

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Grid/Column/ColumnFactory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ public function __construct(
1313

1414
public function create(array $data): Column
1515
{
16+
if (!isset($data['visible'])) {
17+
$data['visible'] = true;
18+
}
19+
1620
return $this->objectManager->create(Column::class, ['data' => $data]);
1721
}
1822
}

0 commit comments

Comments
 (0)