-Empty dataset can not be saved
This commit is contained in:
1 parent
11e436236c
commit
36162c6486
2 files changed
+9
-1
No files matched your search
@@ -10,7 +10,7 @@ class Values extends Fragment {
|
||||
|
||||
public ? int $fieldCount = null;
|
||||
|
||||
public array $rows;
|
||||
public array $rows = [];
|
||||
|
||||
public QueryBuilderInterface $queryBuilder;
|
||||
|
||||
@@ -21,6 +21,10 @@ class Values extends Fragment {
|
||||
|
||||
public function add(array $row) : self
|
||||
{
|
||||
if ($row === []) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
if ($this->fieldCount === null) {
|
||||
$this->fieldCount = count($row);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user