Project

General

Profile

Actions

Bug #24279

closed

ContentObject is not passed to View in FLUIDTEMPLATE

Added by Martin Helmich almost 14 years ago. Updated about 6 years ago.

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

fluidtemplate_cobj.diff (2.18 KB) fluidtemplate_cobj.diff Administrator Admin, 2010-12-02 21:02
Actions #1

Updated by Christian Kuhn almost 12 years ago

  • Category deleted (Communication)
  • Status changed from New to Resolved
  • Target version deleted (0)

imho, this was solved for core 4.5 with #11520

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF