Bug #86010
closedCreation of Content BELOW another Content Element leads to Exception
100%
Description
On current master it is not possible to insert content below other content (creating a content element at the topmost position works).
This is because in the EditDocumentController
the PID of the current page is ecpected to be passed to getLanguages()
where it is used for SiteMatcher->matchByPageId($id)
However, if one inserts a content element BELOW another content element no longer is the PID passed but the negative UID of the above Content Element instead.
if ($insertRecordOnTop) { $relatedPageId = $nRec['pid']; } else { $relatedPageId = -$nRec['uid']; }
In such a case the SiteMatcher fails to find a Site (or PseudoSite) and throws the Exception: #1534710048: No pseudo-site found in root line of page -<uid>
Updated by Daniel Goerz about 6 years ago
- Related to Task #85930: Add API for Site resolving added
Updated by Gerrit Code Review about 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58074
Updated by Gerrit Code Review about 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58074
Updated by Gerrit Code Review about 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58074
Updated by Gerrit Code Review about 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58074
Updated by Benni Mack about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0e2756aabfbec814436a14ac67f412953d451d54.