[BUGFIX] Make checks in localize compatible with new Localization Wizard
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / Page / LocalizationController.php
index 551e2aa..6df2ffa 100644 (file)
@@ -217,28 +217,9 @@ class LocalizationController
             $currentUid = $params['uidList'][$i];
 
             if ($params['action'] === static::ACTION_LOCALIZE) {
-                if ($srcLanguageId === 0) {
-                    $cmd['tt_content'][$currentUid] = [
-                        'localize' => $destLanguageId
-                    ];
-                } else {
-                    $previousUid = $this->localizationRepository->getPreviousLocalizedRecordUid(
-                        'tt_content',
-                        $currentUid,
-                        $pageId,
-                        $srcLanguageId,
-                        $destLanguageId
-                    );
-                    $cmd['tt_content'][$currentUid] = [
-                        'copy' => [
-                            'action' => 'paste',
-                            'target' => -$previousUid,
-                            'update' => [
-                                'sys_language_uid' => $destLanguageId
-                            ]
-                        ]
-                    ];
-                }
+                $cmd['tt_content'][$currentUid] = [
+                    'localize' => $destLanguageId
+                ];
             } else {
                 $previousUid = $this->localizationRepository->getPreviousLocalizedRecordUid(
                     'tt_content',