[BUGFIX] Let CObjectViewHelper render top level objects again 86/58686/3
authorHelmut Hummel <typo3@helhum.io>
Wed, 24 Oct 2018 16:46:19 +0000 (18:46 +0200)
committerBenni Mack <benni@typo3.org>
Thu, 25 Oct 2018 05:23:05 +0000 (07:23 +0200)
commit1aed1588de672bce957968dfa5dc46c0ddf99d9c
tree1b18099a70d34009efbb2590aa3bcbcf7669c6de
parent65148aae1da42fa812df495a49b938bb432d9d67
[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 <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/CObjectViewHelperTest.php