#57482FlexForms: DisplayCondition for Sheet in ExtBase Plugin
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);Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.