Project

General

Profile

Actions

Bug #68989

closed

Sheet Flexform displayCondition logical operator

Added by Nicolas Forgeot almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2015-08-12
Due date:
% Done:

100%

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

Description

We can't use logical operators AND, OR in sheet displayCondition like :

<T3DataStructure>
<sheets>
    <test_sheet>
    <ROOT>
        <TCEforms>
            <sheetTitle>test sheet</sheetTitle>
            <displayCond>
                <OR>
                    <numIndex index="0">FIELD:sDEF.what_to_display:=:LIST</numIndex>
                    <numIndex index="1">FIELD:sDEF.what_to_display:REQ:false</numIndex>
                </OR>
            </displayCond>
        </TCEforms>

To fix, need refactoring of TYPO3\CMS\Backend\Form\FormEngine -> getSingleField_typeFlex :
http://api.typo3.org/typo3cms/current/html/_form_engine_8php_source.html#l02809

Discover all conditions (can be recursive : a and (b or c)) and calculate $fakeRow.


Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Alexander Opitz almost 9 years ago

  • Category set to FormEngine aka TCEforms
  • Status changed from New to Needs Feedback
  • Target version set to 7.5

Did you test this with TYPO3 CMS 7.4? As FormEngine got a total rewrite there. IMHO this won't be changed in 6.2 anymore.

Actions #2

Updated by Benni Mack over 8 years ago

  • Target version deleted (7.5)
Actions #3

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Needs Feedback 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 https://review.typo3.org/45366

Actions #4

Updated by Morton Jonuschat over 8 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF