Actions
Feature #57482
closedFlexForms: DisplayCondition for Sheet in ExtBase Plugin
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2014-04-01
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:
Description
The Display Condition Flag for Sheets doesn't work with Extbase-Settings Feature.
If Condition is written like
<displayCond>FIELD:General.settings.limit:=:2</displayCond>
the FormEngine.php (line 2824) splits in "General" and "settings" and "limit" but recognize only "settings" as fieldname.
The limit get lost.
My temp solution ist:
$tempCond = GeneralUtility::trimExplode('.', $splittedCondition[1]); if (count($tempCond) > 1) { $sheetName = $tempCond[0]; $fieldName = implode(".", array_slice($tempCond, 1)); } else { list($sheetName, $fieldName) = $tempCond; } $fieldValue = $editData['data'][$sheetName][$lang][$fieldName]; $splittedCondition[1] = $fieldName; $dataStruct['ROOT']['TCEforms']['displayCond'] = join(':', $splittedCondition); $fakeRow = array($fieldName => $fieldValue);
Actions