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);
Updated by Marcin Sągol over 10 years ago
I can confirm this behaviour and also vote for this extended feature, where we can use not only first level field/configuration parameter name but whole path to it like: foo.bar.baz in condiftions.
Updated by Mathias Schreiber about 9 years ago
- Target version deleted (
next-patchlevel)
Updated by Morton Jonuschat almost 9 years ago
- Category changed from Backend API to FormEngine aka TCEforms
- Status changed from New to Resolved
Has been resolved with the FormEngine Rewrite. Appropriate tests have been added with commit 655b5353
Actions