Project

General

Profile

Actions

Bug #100937

closed

Flexform sections in TCA inline fields are broken

Added by B. Kausch over 1 year ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2023-05-31
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
flexform
Complexity:
medium
Is Regression:
Sprint Focus:
Stabilization Sprint

Description

Let's imagine a model with the name quiz. This quiz has an inline field questions, which collects items of the model quizquestion. TCA definition example:

        'questions' => [
            'label' => '',
            'config' => [
                'type' => 'inline',
                'foreign_table' => 'domain_model_quizquestion',
                'foreign_field' => 'quiz',
                'foreign_sortby' => 'sorting',
                'maxitems' => 9999,
                'appearance' => [
                    'collapseAll' => 0,
                    'levelLinksPosition' => 'top',
                    'showSynchronizationLink' => 1,
                    'showPossibleLocalizationRecords' => 1,
                    'useSortable' => 1,
                    'showAllLocalizationLink' => 1
                ],
            ],
        ],

Now the model quizquestion has a flexform field answers :

        'answers' => [
            'label' => '',
            'config' => [
                'type' => 'flex',
                'ds' => [
                    'default' => 'FILE:EXT:ext/Configuration/FlexForms/Answers.xml',
                ],
            ],
        ],

The flexform has sections:

<T3DataStructure>
    <sheets>
        <sDEF>
            <ROOT>
                <type>array</type>
                <el>
                    <answers>
                        <type>array</type>
                        <section>1</section>
                        <el>
                            <answer>
                                <type>array</type>
                                <title>Antwort</title>
                                <el>
                                    <text>
                                        <label>Text</label>
                                        <config>
                                            <type>string</type>
                                        </config>
                                    </text>
                                    <correct>
                                        <label>Ist korrekt?</label>
                                        <config>
                                            <type>check</type>
                                            <renderType>checkboxToggle</renderType>
                                        </config>
                                    </correct>
                                </el>
                            </answer>
                        </el>
                    </answers>
                </el>
            </ROOT>
        </sDEF>
    </sheets>
</T3DataStructure>

This just won't work in the typo3 form backend. The sad result of this config:


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #97042: Flexforms with mutliple sheets with same section names are not working anymoreClosed2022-02-25

Actions
Related to TYPO3 Core - Bug #105492: ext:styleguide in v12ResolvedOliver Bartsch2024-10-28

Actions
Actions #1

Updated by Nikita Hovratov over 1 year ago

At first glance "TCEforms" is missing inside text and correct.

Actions #3

Updated by Benni Mack over 1 year ago

  • Sprint Focus set to Stabilization Sprint
Actions #4

Updated by jku jku about 1 year ago

I have this problem too and no work around. I guess it's a problem with the gui. The flexform containers use the same generated ids.

Actions #5

Updated by Georg Ringer 4 months ago

  • Related to Bug #97042: Flexforms with mutliple sheets with same section names are not working anymore added
Actions #6

Updated by Gerrit Code Review 4 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85189

Actions #7

Updated by Gerrit Code Review 4 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85189

Actions #8

Updated by Gerrit Code Review 4 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85189

Actions #9

Updated by Gerrit Code Review 4 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85230

Actions #10

Updated by Georg Ringer 4 months ago

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

Updated by Benni Mack about 1 month ago

  • Status changed from Resolved to Closed
Actions #12

Updated by Oliver Bartsch 24 days ago

Actions

Also available in: Atom PDF