diff --git a/Classes/Service/Importer.php b/Classes/Service/Importer.php index bfd4d72..97dfcf7 100644 --- a/Classes/Service/Importer.php +++ b/Classes/Service/Importer.php @@ -43,7 +43,7 @@ public function import(string $recordTableName, int $storagePageId, array $tcaRe $count = 0; foreach ($tcaRecords as $tcaRecord) { ++$count; - $uid = array_key_exists('uid', $tcaRecord) + $uid = array_key_exists('uid', $tcaRecord) && $tcaRecord['uid'] !== '' ? $tcaRecord['uid'] : sprintf('NEW%s', substr(md5(self::class . $count), 0, 10)); $data[$recordTableName][$uid] = $tcaRecord;