Skip to content

Commit

Permalink
[BUGFIX] Return an array in DataProviderDbQuery.php (#935)
Browse files Browse the repository at this point in the history
Data providers' `create()` method must return an array.
  • Loading branch information
jeff-h authored and e0ipso committed Aug 20, 2016
1 parent d2b4a14 commit 66c4cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function create($object) {
$id_values[$id_column] = $record[$id_column];
}
$new_id = implode(self::COLUMN_IDS_SEPARATOR, $id_values);
return $this->view($new_id);
return array($this->view($new_id));
}
return NULL;
}
Expand Down

0 comments on commit 66c4cc6

Please sign in to comment.