Project

General

Profile

Actions

Bug #67879

closed

Using displaycond on switchable controller actions in Flexform with TYPO3 7.3 not possible

Added by Alex Kellner almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-07-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

Hi,

in the past it was possible to use displayCond in Flexform together with switchableControllerActions, but this seems to be broken in TYPO3 7.3

Example FlexForm XML:

<T3DataStructure>
    <meta>
        <langDisable>1</langDisable>
    </meta>
    <sheets>
        <sheet1>
            <ROOT>
                <TCEforms>
                    <sheetTitle>sheet 1</sheetTitle>
                </TCEforms>
                <type>array</type>
                <el>
                    <switchableControllerActions>
                        <TCEforms>
                            <label>select view</label>
                            <onChange>reload</onChange>
                            <config>
                                <type>select</type>
                                <items type="array">
                                    <numIndex index="0" type="array">
                                        <numIndex index="0">foo</numIndex>
                                        <numIndex index="1"></numIndex>
                                    </numIndex>
                                    <numIndex index="1" type="array">
                                        <numIndex index="0">bar</numIndex>
                                        <numIndex index="1">ControllerName->actionname;</numIndex>
                                    </numIndex>
                                </items>
                                <maxitems>1</maxitems>
                                <size>1</size>
                            </config>
                        </TCEforms>
                    </switchableControllerActions>
                </el>
            </ROOT>
        </sheet1>
        <sheet2>
            <ROOT>
                <TCEforms>
                    <sheetTitle>sheet 2</sheetTitle>
                    <displayCond><![CDATA[FIELD:sheet1.switchableControllerActions:=:ControllerName->actionname;]]></displayCond>
                </TCEforms>
                <type>array</type>
                <el>
                    <settings.foo>
                        <TCEforms>
                            <label>foo</label>
                            <config>
                                <type>input</type>
                            </config>
                        </TCEforms>
                    </settings.foo>
                </el>
            </ROOT>
        </sheet2>
    </sheets>
</T3DataStructure>

Sheet 2 should only be shown if Controllername->action; is set. But this seem not to work any more.
If I'm wrong, can you please tell me how to get this issue solved?

Alex


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #68493: DisplayCond for sheets in flexforms should allow extbase parameters "settings."ClosedBenjamin Serfhos2015-07-23

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

Actions
Actions #1

Updated by Markus Klein almost 9 years ago

  • Category set to FormEngine aka TCEforms
  • Status changed from New to Accepted
  • Assignee set to Christian Kuhn
  • Priority changed from Should have to Must have
  • Target version set to 7.4 (Backend)
  • Is Regression changed from No to Yes
  • Sprint Focus set to Stabilization Sprint

Reported in Slack already today for femanager.

Actions #2

Updated by Christian Kuhn almost 9 years ago

ext:styleguide flex_5 shows the broken behavior now.

Actions #3

Updated by Markus Klein almost 9 years ago

related to #68517 ?

Actions #4

Updated by Andreas Wolf almost 9 years ago

  • Assignee changed from Christian Kuhn to Andreas Wolf

I’m on it. This broke somewhere between 7.2.0 and now.

This does not seem to have a relation to #68517; at least that is reported for 6.2 only. It seems to work on master.

Actions #5

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42071

Actions #6

Updated by Gerrit Code Review almost 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42071

Actions #7

Updated by Andreas Wolf almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF