Issue Bug Closed

#109727FlexForm IRRE section using like`settings.section` breaks backend (undefined array key + accordion not working)

Vivek Solanki 04/29/26, 07:47 updated 08/11/26, 08:46

Description

When defining a FlexForm section using the key like `settings.section` with an IRRE-like container structure, TYPO3 v14 fails to handle the field correctly in the backend.

On the first attempt to add an item, the following warning occurs:

PHP Warning: Undefined array key "settings.section" in /var/www/html/vendor/typo3/cms-backend/Classes/Controller/FormFlexAjaxController.php line 94

After saving the record:
  • IRRE items can be added
  • However, the accordion cannot be opened (toggle is not working)

If the field name is changed from `settings.section` to `section`, the behavior works as expected (proper accordion toggle).

This indicates that dot-notation keys (`settings.*`) are not properly resolved in FlexForm sections with IRRE containers in TYPO3 v14.

—-

Example FlexForm Configuration

xml
<T3DataStructure>
    <sheets>
        <sDEF>
            <ROOT>
                <sheetTitle>LLL:EXT:extension/Resources/Private/Language/locallang_flex.xlf:function</sheetTitle>
                <type>array</type>
                <el>
                    <settings.section>
                      <section>1</section>
                      <title>LLL:EXT:extension/Resources/Private/Language/locallang_flex.xlf:multiple.element</title>
                      <type>array</type>
                      <el>
                          <container>
                              <title>LLL:EXT:extension/Resources/Private/Language/locallang_flex.xlf:general.fields</title>
                              <type>array</type>
                              <el>
                                  <title>
                                          <label>LLL:EXT:extension/Resources/Private/Language/locallang_flex.xlf:general.title</label>
                                          <config>
                                              <type>input</type>
                                              <size>30</size>
                                              <eval>trim,required</eval>
                                          </config>
                                  </title>
                              </el>
                          </container>
                      </el>
                  </settings.section>
                </el>
            </ROOT>
        </sDEF>
  </sheets>
</T3DataStructure>

Reviews 2

History 79

  1. Christian Kuhn commented <span data-processor="relativetime" data-value="2026-05-02T12:23:06+00:00" > 05/02/26, 12:23 </span>

    I couldn’t replay the PHP warning but the expand/collapse issue.

    I suggest we ignore the PHP warning for now – let’s handle this in a fresh issue if it still exists on your side, it may then need new how-to-reproduce information.

    The expand/collapse issue: bootstrap reads data-bs-target as a CSS selector, a dot thus breaks the logic. The fix is to hash the section identifier as is done with other things already.

  2. Christian Kuhn commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-05-02T17:35:08+00:00" > 05/02/26, 17:35 </span>

    Applied in changeset commit:cc93fea03d38909175aa21ee72f7c2f0d4b8783b.