Project

General

Profile

Actions

Feature #57482

closed

FlexForms: DisplayCondition for Sheet in ExtBase Plugin

Added by Ricky B. over 10 years ago. Updated about 6 years ago.

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);


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #42333: Flexform displayConditionRejected2012-10-24

Actions
Related to TYPO3 Core - Bug #60339: displayCond for sheets in flexform with extbase settings namespaceClosed2014-07-15

Actions
Actions

Also available in: Atom PDF