Skip to content

Commit

Permalink
Merge pull request #42 from netlogix/bugfix/uid-check
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanowak authored Dec 13, 2024
2 parents b5ff9b3 + 555839d commit 689db2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 689db2d

Please sign in to comment.