[BUGFIX] L10nModeUpdater: Cast parentId to integer
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Updates / RowUpdater / L10nModeUpdater.php
index 16a6736..e01e9c2 100644 (file)
@@ -315,7 +315,7 @@ class L10nModeUpdater implements RowUpdaterInterface
 
         foreach ($statement as $row) {
             $translationId = $row['uid'];
 
         foreach ($statement as $row) {
             $translationId = $row['uid'];
-            $parentId = $row[$parentFieldName];
+            $parentId = (int)$row[$parentFieldName];
             $payload['localizations'][$translationId] = $parentId;
         }
         if (!empty($payload['localizations'])) {
             $payload['localizations'][$translationId] = $parentId;
         }
         if (!empty($payload['localizations'])) {