98290[BUGFIX] Respect content_from_pid for recursive CONTENT
Commit message
ContentObjectRenderer resolved the "this" keyword of the "pidInList" property in two places with different values: the recursive expansion in getQuery() used the current page id, while getQueryConstraints() uses the content pid, which is the target of the page property "Show content from page". On a page using that property a CONTENT object with "pidInList = this" therefore fetched records from the configured page without "recursive", but silently fell back to the current page and its subtree as soon as "recursive" was set, since the expansion already wrote a concrete page id list and the constraint never saw the keyword. Resolve the keyword from the content pid in the recursive expansion as well, making both places consistent.
Show more Show less
Resolves: #110592 Releases: main, 14.3 Signed-off-by: Stefan Bürk <stefan@buerk.tech> Change-Id: Ic930f506c687a7c6a478ba84caa962426ebb771a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/98290 Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Benni Mack <benni@typo3.org>
Review
-
Code review CR +2 Done
- Benni Mack +2
-
Verified V +2 Done
- Benni Mack +2
- core-ci +1 CI
Issues 1
Files 4
- typo3/sysext/core/Documentation/Changelog/14.3.x/Important-110592-RecursiveContentRespectsContentFromPid.rstnew+44 −0
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php+3 −1
- typo3/sysext/frontend/Tests/Functional/ContentObject/Fixtures/ContentFromPid/PagesAndContent.csvnew+12 −0
- typo3/sysext/frontend/Tests/Functional/ContentObject/ContentContentObjectTest.php+54 −0
Review log 34
-
Benni Mack uploaded patch set 1 12/03/26, 08:58
-
core-ci voted on patch set 1 V +1 12/03/26, 09:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116210
-
Benni Mack voted on patch set 1 CR +2 V +2 12/03/26, 09:08
-
Benni Mack merged patch set 2 12/03/26, 09:08