Skip to content
Snippets Groups Projects
Commit 53196cfe authored by Helmut Hummel's avatar Helmut Hummel
Browse files

[BUGFIX] Duplicate ids in form view on record translation

If a record shall be localized in the page module the accordant
form view gets loaded twice with the same id.

Fixes: #41659
Releases: 6.0
Change-Id: I396518433170e032b09d1d1026fc7fe6c3b0b85f
Reviewed-on: http://review.typo3.org/15383
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
parent 5cc09471
Branches
Tags
No related merge requests found
......@@ -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++) {
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'] . ',';
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment