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.
Updated by Gerrit Code Review about 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9893
Updated by Alexander Opitz almost 11 years ago
Hi Alexander,
is this patch still relevant? If yes, can you rebase the patch to current master?
Updated by Gerrit Code Review almost 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/9893
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/9893
Updated by Gerrit Code Review over 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/9893
Updated by Stefan Neufeind over 9 years ago
- Status changed from Under Review to Closed
- Is Regression set to No
Duplicate of #28745. Solved in branches 6.0 and above since 2/2014.