Project

General

Profile

Actions

Bug #95983

open

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

Added by Michael Binder over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-11-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Files

Actions #1

Updated by Oliver Hader over 2 years ago

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

Actions #2

Updated by Michael Binder over 2 years ago

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,
        ],
    ],
],

Actions

Also available in: Atom PDF