Project

General

Profile

Actions

Bug #35266

closed

Nest count not reset upon exit from render()

Added by Alexander Achenbach about 12 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-03-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #53768: Displaying the same 'Insert Records'-element more than once does not workClosed2013-11-19

Actions
Is duplicate of TYPO3 Core - Bug #28745: Problem with $GLOBALS['TSFE']->recordRegisterClosed2011-08-04

Actions
Actions #1

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

Actions #2

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?

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

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.

Actions

Also available in: Atom PDF