[TYPO3-core] RFC #0016110: Bugfix - stdWrap functions stop working as soon as there is one conditional function returning false

Susanne Moog typo3 at susannemoog.de
Sat Oct 23 17:32:28 CEST 2010


On 22.10.2010 16:31, JoH asenau wrote:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> http://bugs.typo3.org/view.php?id=16110
> 
> Branches: trunk
> 
> Original Problem:
> stdWrap "insertData" does not work anymore if using "override" additionally
> 
> I tracked it down to a missing check for recursive or nested stdWrap calls.
> So if there is at least one conditional function (if, required, fieldRequired) returning false, the whole rendering process stops after this function and nothing will be executed from that point on.
> 
> Solution:
> The atached patch Introduces a variable $this->stdWrapRecursionLevel.
> It solves the problem, since the check for $this->stopRendering[$this->stdWrapRecursionLevel] is done within the current stdWrap function call only and doesn't influence the rest of the rendering process anymore.
> 
> See the bugtracker entry for a TS-setup that can be used as a test.

committed to trunk rev 9195.

When we split the stdWrap functions to its own class we should get rid
of as many stdWrap prefixes as we can (I know, we can't get rid of the
function prefixes, but it should be no problem for the variables).

Susanne


More information about the TYPO3-team-core mailing list