[BUGFIX] Duplicate ids in form view on record translation
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / View / PageLayoutView.php
index a26f177..0bd360d 100644 (file)
@@ -1528,7 +1528,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                $recs[$c] = $row['uid'];
                                // Create the list of the next three ids (for editing links...)
                                for ($a = 0; $a < $nextTree; $a++) {
                                $recs[$c] = $row['uid'];
                                // Create the list of the next three ids (for editing links...)
                                for ($a = 0; $a < $nextTree; $a++) {
-                                       if (isset($recs[$c - $a])) {
+                                       if (isset($recs[$c - $a]) && !\TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->tt_contentData['nextThree'][$recs[$c - $a]], $row['uid'])) {
                                                $this->tt_contentData['nextThree'][$recs[$c - $a]] .= $row['uid'] . ',';
                                        }
                                }
                                                $this->tt_contentData['nextThree'][$recs[$c - $a]] .= $row['uid'] . ',';
                                        }
                                }