From 12a962ae9b32cb7606974cebf151e9285d2c275c Mon Sep 17 00:00:00 2001 From: Claus Due Date: Fri, 5 Jun 2020 13:44:39 +0200 Subject: [PATCH] [BUGFIX] Do not touch colPos if command was "localize" Prevent modification of colPos for "localize" action, record needs to keep original colPos to be in sync with translation parent/source. Close: #1795 --- .../Integration/HookSubscribers/DataHandlerSubscriber.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php b/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php index 4e4c60314..f377aa46f 100644 --- a/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php +++ b/Classes/Integration/HookSubscribers/DataHandlerSubscriber.php @@ -61,6 +61,11 @@ public function processDatamap_afterDatabaseOperations($command, $table, $id, $f $originalParentUid = ColumnNumberUtility::calculateParentUid($originalRecord['colPos']); $newColumnPosition = 0; + if (!empty($fieldArray['l18n_parent'])) { + // Command was "localize", do not touch colPos. + return; + } + if (isset(static::$copiedRecords[$originalParentUid])) { // The parent of the original version of the record that was copied, was also copied in the same request; // this means the record that was copied, was copied as a recursion operation. Look up the most recent copy