[BUGFIX] Do not reset Page Renderer on partial rendering 70/28770/6
authorStefan Froemken <froemken@gmail.com>
Tue, 25 Mar 2014 14:55:19 +0000 (15:55 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 3 Apr 2014 20:00:34 +0000 (22:00 +0200)
commitc67e8ebbb074c46dae40bec329db7392e023b0d6
tree9ca9eb5444d4a487da01ea018b68a41e80cfc0f9
parentf797f4ae069c2fd2e7d06857d5c2289991a553cd
[BUGFIX] Do not reset Page Renderer on partial rendering

Currently the Page Renderer is reset when calling
the render() method, even if only one part (header
or footer) is rendered, which causes a second call
to fail, when rendering another part.
This happens e.g in DocumentTemplate.php where
the render() method is called two times. Because of
the reset, the second call starts pageRenderer with
empty properties.

Solution is to only call reset if everything is rendered.

Resolves: #57294
Releases: 6.2
Change-Id: Ib4800e37ba0760617de71f9ca1181d1664463e33
Reviewed-on: https://review.typo3.org/28770
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Page/PageRenderer.php
typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php