Bug #35266
closedNest count not reset upon exit from render()
0%
Description
Currently a render counter for nested CONTENT/RECORD objects is applied:
As soon as render() is invoked while another object's render() function
is still active, it increments
$GLOBALS['TSFE']->recordRegister[$originalRec]
to be able to detect infinite nesting due to re-rendering of the same
object. Unfortunately, the nesting count is not decremented upon exit
from render(), causing repeated nested rendering to sometimes be
aborted even if it is perfectly ok and finite.
Example: Include a section menu (from CSS Styled Content) as content on
a page. That creates a CONTENT object which makes use of a CONTENT object
inside (see CSS Styled Content static include). Such an object cannot be
re-used on the same page (for actual rendering or some if.*.cObject), as
it will always be aborted in the second case.
I will commit a patch for this via Gerrit.