[TYPO3-core] RFC: Bug #17372: stdWrap .current and .setContentToCurrent do not return content

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Jan 28 09:35:24 CET 2011


Jeff Segars schrieb am 27.01.2011 23:36:
> Hey guys,
> 
> This is a SVN patch request.
> 
> Type: Bugfix
> Bugtracker reference: http://bugs.typo3.org/view.php?id=17372
> Branch: trunk
> 
> Problem:
> With the tslib_content refactoring in 4.5, we now have standalone
> methods for many pieces of stdWrap, which are chained together at the
> end of the main stdWrap method. Each standalone helper method takes the
> $content and $conf, processes it, and returns the $content.
> 
> stdWrap_setContentToCurrent() and stdWrap_setCurrent() do not return
> $content, however. This means that any stdWrap properties coming after
> these two no longer have content to operate on.
> 
> Solution:
> return $content;

Good catch! Tested with this setup, in 4.4 and 4.5:

page = PAGE
page.10 = TEXT
page.10 {
  setCurrent = 1
  setContentToCurrent = 1
  value = Test
  wrap = <h1>|</h1>
}

=> 4.4: "<h1>Test</h1>"
=> 4.5 unpatched: empty
=> 4.5 patched: "<h1>Test</h1>"

+1 by reading and testing.

Cheers,
Ernesto



More information about the TYPO3-team-core mailing list