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

JoH asenau info at cybercraft.de
Fri Oct 22 16:31:21 CEST 2010


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.

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tslib_content.diff
Type: application/octet-stream
Size: 2204 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101022/0872ade2/attachment.obj>


More information about the TYPO3-team-core mailing list