Issue Bug Closed

#24279ContentObject is not passed to View in FLUIDTEMPLATE

Martin Helmich 12/02/10, 21:02 updated 10/02/18, 12:21

Description

In the FLUIDTEMPLATE cObject, no instance of the tslib_cObj class is passed to the created view. This renders most of the Fluid ViewHelpers that you might want to use (e.g. the ImageViewHelper, or maybe some of the *LinkViewHelpers) useless, causing them to abort with fatal errors:

“Fatal error: Call to a member function getImgResource() on a non-object in /path/to/typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php on line 107”

The attached patch fixes the problem. However, I am not sure whether my solution is good style. This issue affects both the “cms” and “fluid” system extensions; I hope this is the right place for it.

(issue imported from #M16654)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.