[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
Fri Oct 22 21:34:00 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.

+1 by reading and testing with the TS from bugtracker:

page.100 = TEXT
page.100 {
  value = polly wants {field:uid} cracker(s)
  override.cObject = TEXT
  override.cObject {
    value = smells like teen spirit
    insertData = 1
    if.value = 11
    if.equals = 123
  }
  insertData = 1
}

Thx for fixing it fast :-)

Susanne


More information about the TYPO3-team-core mailing list