[BUGFIX] FAL broke rendering of image with RECORDS cObj
authorSusanne Moog <typo3@susannemoog.de>
Sat, 5 May 2012 16:02:10 +0000 (18:02 +0200)
committerTolleiv Nietsch <tolleiv.nietsch@typo3.org>
Sat, 5 May 2012 16:53:02 +0000 (18:53 +0200)
Due to the backwardsCompatibilityService only
being called in tslib_content_content all other
places related to tslib_content don't work anymore
(especially RECORDS, this is used quite often
both via TypoScript and in TemplaVoila and therefore
has quite some impact).

Patch is to call the backwardsCompatibilityService at
the start of tslib_content to fix the data array for
all content types.

Change-Id: I57d1a86468a7836c7c12ca3e91b233c1671a1b9e
Fixes: #36866
Releases: 6.0
Reviewed-on: http://review.typo3.org/11017
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/sysext/cms/tslib/class.tslib_content.php

index a5f14e9..9a3c8a0 100644 (file)
@@ -389,6 +389,7 @@ class tslib_cObj {
         */
        function start($data, $table = '') {
                global $TYPO3_CONF_VARS;
+               t3lib_file_Service_BackwardsCompatibility_TslibContentAdapterService::modifyDBRow($data, $table);
                $this->data = $data;
                $this->table = $table;
                $this->currentRecord = $table ? $table . ':' . $this->data['uid'] : '';