Skip to content

Commit

Permalink
Avoid notice Exception in Column::getData()
Browse files Browse the repository at this point in the history
`{% set op = column.data.operator is defined ? column.data.operator : column.defaultOperator %}` call directly Column::getData().
Related to APY#1047 but not fixed
  • Loading branch information
link911 authored Nov 4, 2021
1 parent a0c31b2 commit 3cdd03e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Grid/Column/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,14 @@ public function setData($data)
public function getData()
{
$result = [];

if($this->data === null) {
$this->data = [
'from' => null,
'to' => null,
'operator' => null
];
}

$hasValue = false;
if ($this->data['from'] != $this::DEFAULT_VALUE) {
Expand Down

0 comments on commit 3cdd03e

Please sign in to comment.