diff --git a/Classes/Hooks/DatamapDataHandlerHook.php b/Classes/Hooks/DatamapDataHandlerHook.php index 67f5247..5644641 100644 --- a/Classes/Hooks/DatamapDataHandlerHook.php +++ b/Classes/Hooks/DatamapDataHandlerHook.php @@ -38,7 +38,10 @@ public function processDatamap_beforeStart(DataHandler $dataHandler) foreach ($datamap['tt_content'] as $id => $incomingFieldArray) { $incomingFieldArray['uid'] = $id; if (MathUtility::canBeInterpretedAsInteger($id)) { - $incomingFieldArray = array_merge(BackendUtility::getRecord('tt_content', $id), $incomingFieldArray); + $record = BackendUtility::getRecord('tt_content', $id); + if (!empty($record)) { + $incomingFieldArray = array_merge($record, $incomingFieldArray); + } } else { $incomingFieldArray = array_merge($dataHandler->defaultValues['tt_content'] ?? [], $incomingFieldArray); }