[BUGFIX] FLUIDTEMPLATE - Serialization of 'Closure' is not allowed tmaroschik/namespaced_master
authorOliver Hader <oliver@typo3.org>
Thu, 3 May 2012 19:27:03 +0000 (21:27 +0200)
committerBenjamin Mack <benni@typo3.org>
Mon, 16 Jul 2012 08:45:10 +0000 (10:45 +0200)
commit15d99ae60cfbde7f8411f1aa7a44ad85f79ed5ee
tree1a5c2822c25a003b5e508ba2eb3ea23e1c949162
parentc5d676a6933ff7a049b674d7c6e8f7b3803038ea
[BUGFIX] FLUIDTEMPLATE - Serialization of 'Closure' is not allowed

When using FLUIDTEMPLATE and COA_INT or USER_INT on the same
level and partials are used in the Fluid template, then there
will be Closures. COA_INT and USER_INT are going to serialize
the cObj, which fails when a Closure shall be processed.

Since the Closures have been collected in $cObj->contentObjects
the fix is to use a cloned version of the cObj which does not
contain these contentObjects anymore for COA_INT and USER_INT.

Change-Id: I5c1f9b01caef1df5077955bd7fa6e879e41ca854
Fixes: #36820
Related: #32295
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/10979
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/cms/tslib/class.tslib_content.php