Issue Bug Closed

#95983No new IRRE elements can be created if there are any in the selectfield

Michael Binder 11/15/21, 15:52 updated 09/16/25, 19:44

Description

With a combination box, there is no longer a possibility to create new IRRE elements if there are already elements in the select field.
Both buttons add the selected IRRE element, only when there is no IRRE element left, new elements can be created.

I think it’s because both buttons get the same class “t3js-create-new-button” (https://github.com/TYPO3/typo3/blob/736d7d3078373752b90a96938bd11d7e30150617/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php#L420).

Tested in TYPO3 10 & 11

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 3

  1. Oliver Hader commented 11/18/21, 18:17

    Can you please share the TCA configuration for that particular field?
    Maybe it can be reproduced with https://github.com/TYPO3/styleguide as well?

  2. Michael Binder commented 11/19/21, 12:38

    Oh sorry, i forgot the code example.
    I can reproduce it with the styleguide extension.
    The code is practically identical to the “inline use combination” element.

    TCA config of the field (in `Configuration/TCA/tx_styleguide_inline_usecombination.php`)

    'inline_1' => [
        'exclude' => 1,
        'label' => 'inline_1',
        'config' => [
            'type' => 'inline',
            'foreign_table' => 'tx_styleguide_inline_usecombination_mm',
            'foreign_field' => 'select_parent',
            'foreign_selector' => 'select_child',
            'foreign_unique' => 'select_child',
            'maxitems' => 9999,
            'autoSizeMax' => 10,
            'appearance' => [
                'newRecordLinkAddTitle' => 1,
                'useCombination' => true,
                'collapseAll' => false,
                'levelLinksPosition' => 'top',
                'showSynchronizationLink' => 1,
                'showPossibleLocalizationRecords' => 1,
                'showAllLocalizationLink' => 1,
            ],
        ],
    ],
  3. Georg Ringer commented and changed status New Closed 09/16/25, 19:44

    can’t reproduce that anymore on 14-0-dev. feel free to comment if still valid for you!