Project

General

Profile

Actions

Bug #60339

closed

displayCond for sheets in flexform with extbase settings namespace

Added by M. Ecker almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2014-07-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

To be available in Extbase controllers via $this->settings array, flexform fields have to be named as

<settings.xyz> </settings.xyz>

If you want to use such a field as displayCond for another sheet, you'll get a problem:

<displayCond>FIELD:sDEF.settings.xyz:!=:0</displayCond>

will always be true, since the getSingleField_typeFlex() method of TYPO3\CMS\Backend\Form\FormEngine will drop the 'xyz' part (LINE 2820 ff.) and deliver FIELD:settings as displayCond to the isDisplayCondition() method.

                            case 'FIELD':
                                list($sheetName, $fieldName) = GeneralUtility::trimExplode('.', $splittedCondition[1]);
                                $fieldValue = $editData['data'][$sheetName][$lang][$fieldName];
                                $splittedCondition[1] = $fieldName;
                                $dataStruct['ROOT']['TCEforms']['displayCond'] = join(':', $splittedCondition);
                                $fakeRow = array($fieldName => $fieldValue);
                                break;

That's only a problem if you want to use the xyz setting not only as displayCond, but also within your controller - but in my current extension I have to do this...


Related issues 3 (0 open3 closed)

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

Actions
Related to TYPO3 Core - Feature #57482: FlexForms: DisplayCondition for Sheet in ExtBase Plugin Closed2014-04-01

Actions
Has duplicate TYPO3 Core - Bug #63061: displayCond for sheets in flexformClosed2014-11-19

Actions
Actions

Also available in: Atom PDF