diff --git a/Classes/Step/StoreDataStep.php b/Classes/Step/StoreDataStep.php index 197a612c..dbfbc3ef 100644 --- a/Classes/Step/StoreDataStep.php +++ b/Classes/Step/StoreDataStep.php @@ -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])) { @@ -1388,4 +1388,4 @@ public function getFieldsExcludedFromUpdates(): array { return $this->fieldsExcludedFromUpdates; } -} \ No newline at end of file +}