@@ -2867,12 +2867,12 @@ |
||
2867 | 2867 | */ |
2868 | 2868 | public function getColumns() |
2869 | 2869 | { |
2870 | - $columnManipulated = !$this->getSessionData('_grid_hidden_columns_manipulated', FALSE); |
|
2870 | + $columnManipulated = !$this->getSessionData('_grid_hidden_columns_manipulated', FALSE); |
|
2871 | 2871 | if ($columnManipulated) |
2872 | 2872 | $columns_to_hide = []; |
2873 | 2873 | |
2874 | 2874 | foreach ($this->columns as $key => $column) { |
2875 | - if ($columnManipulated) |
|
2875 | + if ($columnManipulated) |
|
2876 | 2876 | if ($column->getDefaultHide()) |
2877 | 2877 | $columns_to_hide[] = $key; |
2878 | 2878 |
@@ -2868,13 +2868,15 @@ |
||
2868 | 2868 | public function getColumns() |
2869 | 2869 | { |
2870 | 2870 | $columnManipulated = !$this->getSessionData('_grid_hidden_columns_manipulated', FALSE); |
2871 | - if ($columnManipulated) |
|
2872 | - $columns_to_hide = []; |
|
2871 | + if ($columnManipulated) { |
|
2872 | + $columns_to_hide = []; |
|
2873 | + } |
|
2873 | 2874 | |
2874 | 2875 | foreach ($this->columns as $key => $column) { |
2875 | - if ($columnManipulated) |
|
2876 | - if ($column->getDefaultHide()) |
|
2876 | + if ($columnManipulated) { |
|
2877 | + if ($column->getDefaultHide()) |
|
2877 | 2878 | $columns_to_hide[] = $key; |
2879 | + } |
|
2878 | 2880 | |
2879 | 2881 | $this->columns_visibility[$key] = [ |
2880 | 2882 | 'visible' => TRUE, |