Actions
Bug #42333
closedFlexform displayCondition
Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2012-10-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
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
Actions