[BUGFIX] FLUIDTEMPLATE - Serialization of 'Closure' is not allowed
authorOliver Hader <oliver@typo3.org>
Thu, 3 May 2012 19:27:03 +0000 (21:27 +0200)
committerXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 08:49:08 +0000 (10:49 +0200)
commit51c3f8fb2ac417fcf0f605b19871f8af08b50f81
treeb2014fc841881af69e425d430b037f71d32b3064
parent36fa0c213fb1f6bb73cd72fb79d64b5151a9048f
[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: I03dada20a133474f5260d432cbf75fd29c2b11e7
Fixes: #36820
Related: #32295
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/13897
Reviewed-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/cms/tslib/class.tslib_content.php