Project

General

Profile

Actions

Bug #75493

closed

stdWrap properties executed twice (patch provided)

Added by Olaf Schmidt-Wischhöfer about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2016-04-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The method stdWrap of class \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer includes a check to prevent duplicate execution of sub-properties for recursive stdWrap functions and cObjects. This check only words in some of the cases.

Example:

page = PAGE
page.10 = TEXT
page.10.stdWrap.append = TEXT

Result: “append” is printed twice in the TypoScript section of the admin panel.

Workaround:

page = PAGE
page.10 = TEXT
page.10.stdWrap =
page.10.stdWrap.append = TEXT

A patch is attached.

I tested the bug fix with version 6.2.19. I also compared the code of current HEAD in git.typo3.org and saw no change – so the fix should be applied to all branches.


Files

ContentObjectRenderer.php.diff (944 Bytes) ContentObjectRenderer.php.diff Bug fix Olaf Schmidt-Wischhöfer, 2016-04-11 11:13
2016-05-04_232104.jpg (51.6 KB) 2016-05-04_232104.jpg Nicole Cordes, 2016-05-04 23:23
Actions

Also available in: Atom PDF