Project

General

Profile

Actions

Bug #24874

closed

LOAD_REGISTER different behaviour since 4.5.0 (depending on ordering)

Added by Michael Birchler about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
Start date:
2011-01-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Following TypoScript code returns an "array" string since TYPO3 4.5.
1 = LOAD_REGISTER
1 {
columnItems {
insertData = 1
if.isTrue.field = content
}
columnItems (
<div class="columnItems" style="{register:padding}"> {field:content}
</div>
)
}

I can rewrite my TypoScript for 4.5
1 = LOAD_REGISTER
1 {
columnItems.cObject = TEXT
columnItems.cObject {
if.isTrue.field = content
insertData = 1
value (
<div class="columnItems" style="{register:padding}"> {field:content}
</div>
)
}
}

than everthing works as expected.

(issue imported from #M17385)


Files

17385.diff (801 Bytes) 17385.diff Administrator Admin, 2011-01-29 19:54
Actions #1

Updated by Jo Hasenau about 13 years ago

This seems to be due to the order of your TS-Setup, since it works as soon as you move the value definition of your first example in front of the action "insertData".

According to TSref this should not happen, since the order of settings is not taken into account.

Changing
$theValue = $this->cObj->stdWrap($theValue, $conf[$registerProperties]);
to
$theValue = $this->cObj->stdWrap($conf[$register], $conf[$registerProperties]);

should help in this case.

Attached patch does exatcly this. Please check if this works.

Actions #2

Updated by Ernesto Baschny about 13 years ago

Michael, could you please test the fix from Joey, so that we can get that in the core list (RFC) and fixed for 4.5.1? Thanks!

Actions #3

Updated by Michael Birchler about 13 years ago

Patch from Jo Hasenau works.
+ 1 after testing.

Thank you Jo.

Actions #4

Updated by Jo Hasenau about 13 years ago

Pending in core list.

Actions #5

Updated by Francois Suter about 13 years ago

Michael, would you mind posting your vote to the Core list, please? It's easier to count the votes :-)

Actions #6

Updated by Francois Suter about 13 years ago

Committed to 4.5 in revision 10470 and trunk in revision 10471

Actions

Also available in: Atom PDF