Skip to content

Commit

Permalink
[BUGFIX] Avoid undefined array key warning with additionalFields
Browse files Browse the repository at this point in the history
Skip missing additionalFields on data store
  • Loading branch information
fsuter authored Feb 25, 2023
2 parents 95764d9 + b37dbc0 commit b8b905e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Step/StoreDataStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ public function prepareDataToStore(): array
$this->valuesExcludedFromSaving[$id] = [];
foreach ($columnConfiguration as $name => $configuration) {
// The values that are excluded are temporarily stored for later restoration
if (array_key_exists(Configuration::DO_NOT_SAVE_KEY, $configuration)) {
if (array_key_exists(Configuration::DO_NOT_SAVE_KEY, $configuration) && array_key_exists($name, $record)) {
$this->valuesExcludedFromSaving[$id][$name] = $record[$name];
// Make sure a value actually exists
} elseif (isset($record[$name])) {
Expand Down Expand Up @@ -1388,4 +1388,4 @@ public function getFieldsExcludedFromUpdates(): array
{
return $this->fieldsExcludedFromUpdates;
}
}
}

0 comments on commit b8b905e

Please sign in to comment.