Bug #24874
closedLOAD_REGISTER different behaviour since 4.5.0 (depending on ordering)
0%
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
Updated by Jo Hasenau over 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.
Updated by Ernesto Baschny over 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!
Updated by Michael Birchler over 13 years ago
Patch from Jo Hasenau works.
+ 1 after testing.
Thank you Jo.
Updated by Francois Suter over 13 years ago
Michael, would you mind posting your vote to the Core list, please? It's easier to count the votes :-)
Updated by Francois Suter over 13 years ago
Committed to 4.5 in revision 10470 and trunk in revision 10471