Project

General

Profile

Actions

Bug #43068

closed

Method modifyDBRow (FrontendContentAdapterService)

Added by Tomasz Grzemski over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
Start date:
2012-11-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The method doesn't check if a row is an array, so if $row is empty this method always creates an array and adds $row['_MIGRATED'] element.

When using TypoScipt to get some data from TEXT object there is a check if $fieldArray is an array. So this condition will be always false:

ContentObjectRender.php
public function getData($string, $fieldArray) {
        global $TYPO3_CONF_VARS;
        if (!is_array($fieldArray)) {
            $fieldArray = $GLOBALS['TSFE']->page;
}

We should check in modifyDBRow method if a data argument is an array.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #42244: ContentAdapter processes same record multiple timesClosedSteffen Ritter2012-10-21

Actions
Actions #1

Updated by Tomasz Grzemski over 11 years ago

The problem was discovered using Extbase/Fluid:
<f:cObject typoscriptObjectPath="lib.object" />

Actions #2

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16546

Actions #3

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16546

Actions #4

Updated by Gerrit Code Review over 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16546

Actions #5

Updated by Gerrit Code Review over 11 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16546

Actions #6

Updated by Gerrit Code Review over 11 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16546

Actions #7

Updated by Marc Bastian Heinrichs over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF