Bug #4063

CObjectViewHelper erases field data in TypoScript

Added by Christian Zenker about 13 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Must have
Category:
-
Target version:
-
Start date:
2009-07-29
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

If no cObj is handed, CObjectViewHelper uses cObj from the GLOBALS-array. But this way it erases all data in this cObj that might be used later on in TypoScript.

Example

page {
    10 < plugin.tx_myext
    headerData = TEXT
    headerData {
        # will be empty
        field = title
        wrap = <title>|</title>
    }
}

The appended bugfix creates a new cObj if none is supported, but I'm not sure, if this is the best solution.
Maybe the parser could support one, or maybe it already does...?


Files

CObjectViewHelper.diff (713 Bytes) CObjectViewHelper.diff fix Christian Zenker, 2009-07-29 19:37
#1

Updated by Christian Zenker about 13 years ago

Tx_Fluid_ViewHelpers_Format_CropViewHelper uses $GLOBALS['TSFE']->cObj, too.

#2

Updated by Jochen Rau about 13 years ago

  • Assignee set to Sebastian Kurfuerst
#3

Updated by Sebastian Kurfuerst about 13 years ago

  • Assignee changed from Sebastian Kurfuerst to Bastian Waidelich

Bastian, can you take care of this issue?

#4

Updated by Bastian Waidelich almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1084.

#5

Updated by Bastian Waidelich almost 13 years ago

  • Project changed from 534 to TYPO3.Fluid
  • Category deleted (432)

Also available in: Atom PDF