Bug #95983
openNo new IRRE elements can be created if there are any in the selectfield
0%
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
Updated by Oliver Hader about 3 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?
Updated by Michael Binder about 3 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,
],
],
],