Skip to content

Commit

Permalink
Hotfix missing default data detection
Browse files Browse the repository at this point in the history
  • Loading branch information
werrolf committed Jul 19, 2021
1 parent 4f11cc3 commit e472a1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Component/Meta/TableMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public function prepareInsertData(array $data)
foreach ($columnNames as $columnName) {
$column = $this->getColumn($columnName);
if (!$column->hasDefault()) {
$aliases = $this->getAliases($columnName, true);
if (!\array_diff($aliases, \array_keys($data))) {
if (!\array_key_exists($columnName, $data)) {
$data[$columnName] = $column->getSafeDefault();
}
}
Expand Down

0 comments on commit e472a1d

Please sign in to comment.