Skip to content

Commit 66c4cc6

Browse files
jeff-he0ipso
authored andcommitted
[BUGFIX] Return an array in DataProviderDbQuery.php (#935)
Data providers' `create()` method must return an array.
1 parent d2b4a14 commit 66c4cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin/resource/DataProvider/DataProviderDbQuery.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function create($object) {
198198
$id_values[$id_column] = $record[$id_column];
199199
}
200200
$new_id = implode(self::COLUMN_IDS_SEPARATOR, $id_values);
201-
return $this->view($new_id);
201+
return array($this->view($new_id));
202202
}
203203
return NULL;
204204
}

0 commit comments

Comments
 (0)