From 1726fc56c344b7b208940242bc600de4880439e4 Mon Sep 17 00:00:00 2001 From: Oliver Hader Date: Wed, 22 Aug 2018 11:17:31 +0200 Subject: [PATCH] [TASK] Use suggestedInsertUids feature for new version placeholders The DataHandler::$suggestedInsertUids feature is currently only used for regular live records, however not for new version placeholders - which in fact are the pendant for a regular live records, with the additional binding to a specific workspace context. Resolves: #85921 Releases: master Change-Id: I320ab26be3c60983640d3c5f61338689b9068209 Reviewed-on: https://review.typo3.org/57986 Tested-by: TYPO3com Reviewed-by: Daniel Gorges Tested-by: Daniel Gorges Reviewed-by: Benni Mack Tested-by: Benni Mack --- typo3/sysext/core/Classes/DataHandling/DataHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index f0bdead9f5a9..b4b1b72ad3cb 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -1251,7 +1251,7 @@ public function process_datamap() $newVersion_placeholderFieldArray['t3ver_wsid'] = $this->BE_USER->workspace; $newVersion_placeholderFieldArray[$GLOBALS['TCA'][$table]['ctrl']['label']] = $this->getPlaceholderTitleForTableLabel($table); // Saving placeholder as 'original' - $this->insertDB($table, $id, $newVersion_placeholderFieldArray, false); + $this->insertDB($table, $id, $newVersion_placeholderFieldArray, false, $incomingFieldArray['uid'] ?? 0); // For the actual new offline version, set versioning values to point to placeholder: $fieldArray['pid'] = -1; $fieldArray['t3ver_oid'] = $this->substNEWwithIDs[$id];