Actions
Bug #86010
closedCreation of Content BELOW another Content Element leads to Exception
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2018-08-28
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
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>
Actions