[BUGFIX] Correctly initialize content object for plugins 12/48012/2
authorHelmut Hummel <info@helhum.io>
Wed, 4 May 2016 18:49:56 +0000 (20:49 +0200)
committerNicole Cordes <typo3@cordes.co>
Wed, 4 May 2016 20:20:38 +0000 (22:20 +0200)
For rendering plugins FSC uses the cObjecViewHelper,
but misses to set the table name.

This leads to an incompletely initialized content object
being used when rendering the plugin.

cObj->currentRecord will stay empty, but some functionality
relies on this value to be correctly set.

Resolves: #76052
Releases: master, 7.6
Change-Id: I66b725adb3a0311609cfc60c29951eba5aa2217c
Reviewed-on: https://review.typo3.org/48012
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/fluid_styled_content/Resources/Private/Templates/List.html

index 6cd878f..c813eae 100644 (file)
@@ -2,6 +2,6 @@
 <f:layout name="HeaderContentFooter" />
 
 <f:section name="content">
-       <f:cObject typoscriptObjectPath="tt_content.list.20.{data.list_type}" data="{data}" />
+       <f:cObject typoscriptObjectPath="tt_content.list.20.{data.list_type}" data="{data}" table="tt_content"/>
 </f:section>
 </html>
\ No newline at end of file