Issue Bug Rejected

#42333Flexform displayCondition

Mikel no-lastname-given 10/24/12, 10:39 updated 10/29/15, 21:20

Description

I just wanted to configure my flexform file with conditions.
The field should be displayed depending from a field from another tab.. that didn’t work

I’ve already found this issue:
http://forge.typo3.org/issues/33390

In the t3lib/class.t3lib_tceforms.php on line 2530 is everything ok.
That is just how it should work.

But in the function “isDisplayCondition” it is still wrong.

if ($ffValueKey) {
    if (strpos($parts[1], 'parentRec.') !== FALSE) {
        $fParts = explode('.', $parts[1]);
        $theFieldValue = $row['parentRec'][$fParts[1]];
    } else {
        $theFieldValue = $row[$parts[1]][$ffValueKey];
    }
} else {
    $theFieldValue = $row[$parts[1]];
}

Here it still checks if the string “parentRec” is in the condition String.
It doesn’t provide different tabs in conditions.

I’ve tried this in my flexform

<displayCond>FIELD:sDEF.switchableControllerActions:=:List->new</displayCond>

Its in another Tab than “sDEF”.

I think its a bug.
But if i just made an mistake in the usage.. please correct me

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.