Actions
Bug #24279
closedContentObject is not passed to View in FLUIDTEMPLATE
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
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)
Files
Actions