Project

General

Profile

Actions

Bug #86010

closed

Creation of Content BELOW another Content Element leads to Exception

Added by Daniel Goerz over 5 years ago. Updated over 5 years ago.

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>


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #85930: Add API for Site resolvingClosedBenni Mack2018-08-22

Actions
Actions #1

Updated by Daniel Goerz over 5 years ago

  • Related to Task #85930: Add API for Site resolving added
Actions #2

Updated by Gerrit Code Review over 5 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

Actions #3

Updated by Gerrit Code Review over 5 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

Actions #4

Updated by Gerrit Code Review over 5 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

Actions #5

Updated by Gerrit Code Review over 5 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

Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF