[TYPO3-core] RFC #4270 displayCond for flexforms, that affects on row of element
Rupert Germann
rupi at gmx.li
Tue Jun 9 21:03:55 CEST 2009
hi Niels,
(and other +1 by readings),
do more testing!
Niels Pardon wrote:
...
> Besides that +1 from reading.
hmm, I read it, too:
(line 5732)
if($ffValue && ...
there is no $ffValue at this point.
and even if that is fixed, it will still not work because filling
$theFieldValue with $row[$parts[1]][$ffValueKey] (in case $parts[1]
contains 'parentRec.') is nonsense - we want $row[$parts[1]] at this point.
and btw: conditions referencing normal ff fields will not work anymore.
something like this would work:
if ($ffValueKey && strpos($parts[1],'parentRec.')!==FALSE) {
$theFieldValue = $row[$parts[1]];
} else {
$theFieldValue = ($ffValueKey ? $row[$parts[1]][$ffValueKey] :
$row[$parts[1]]);
}
greets
rupert
PS:
please, do more testing!
More information about the TYPO3-team-core
mailing list