[TYPO3-core] RFC #9058: Hook objects for stdWrap in class.tslib_content.php get executed multiple times.
Steffen Müller
typo3 at t3node.com
Wed Nov 18 17:59:42 CET 2009
Hi,
this is a SVN patch request.
Type: Bugfix
Bugtracker references: http://bugs.typo3.org/view.php?id=9058
Branches: Trunk
Problem:
Hook objects for stdWrap in class.tslib_content.php get executed
multiple times.
When there is a single content element on the page, it works fine. But
when there 2 CEs, the stdWrap hooks get executed twice. With 3 CEs, its
executed 3 times and so on.
The reason is that the hook object container is never cleaned.
Solution:
$this->stdWrapHookObjects contains the hook objects for stdWrap.
Reset this property in start() function which serves as the constructor
of the class tslib_cObj.
Steps to reproduce:
For testing purpose, install the demo extension which can be found in
the bugtracker.
Then add some content elements of type TEXT to a page and view the page.
--
cheers,
Steffen
TYPO3 Blog: http://www.t3node.com/
Blubber on Twitter: http://twitter.com/t3node
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_9058_v2.diff
Type: application/pgp-keys
Size: 580 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091118/85b77537/attachment.key>
More information about the TYPO3-team-core
mailing list