Bug #86729

CObjectVIewHelper does not render top level object path

Added by Helmut Hummel about 1 year ago. Updated 7 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-10-24
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

When calling CObjectVIewHelper in a Fluid template with a top level path, it does not render anything any more.

Having this in the template:

<f:cObject typoscriptObjectPath="tt_content" data="{content_item.data}" table="tt_content" />

I would expect to have content elements rendered with the tt_content TypoScript content rendering definition.

What actually happens is that an empty string is returned.

This regression was introduced with: https://review.typo3.org/#/c/56225/


Related issues

Related to TYPO3 Core - Task #84345: Make CObjectViewHelperTest notice free Closed 2018-03-16
Related to TYPO3 Core - Bug #88036: Adding a ce of type "plugin" without defining a plugin breaks FE New 2019-03-29

Associated revisions

Revision 1aed1588 (diff)
Added by Helmut Hummel about 1 year ago

[BUGFIX] Let CObjectViewHelper render top level objects again

Making the CObjectViewHelper had the unfortunate side effect,
that top level object paths are not working any more.

Adapt the tests to show the mistake and make the rendering
work in this case.

Additionally now an exception is also thrown, if the given
object path does not resolve to a TypoScript object.

Releases: master
Resolves: #86729
Related: #84345
Change-Id: I686119b480c6fae88be7d704b82094e35789c0d7
Reviewed-on: https://review.typo3.org/58686
Tested-by: TYPO3com <>
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Nicole Cordes <>
Tested-by: Nicole Cordes <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

History

#1 Updated by Helmut Hummel about 1 year ago

  • Description updated (diff)

#2 Updated by Helmut Hummel about 1 year ago

  • Related to Task #84345: Make CObjectViewHelperTest notice free added

#3 Updated by Gerrit Code Review about 1 year 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/58686

#4 Updated by Gerrit Code Review about 1 year 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/58686

#5 Updated by Helmut Hummel about 1 year ago

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

#6 Updated by Georg Ringer 8 months ago

  • Related to Bug #88036: Adding a ce of type "plugin" without defining a plugin breaks FE added

#7 Updated by Benni Mack 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF