#97661Create new not working as expected when using "foreign_selector" and "useCombination"
Description
If the two options foreign_selector and useCombination are set, I get two buttons in my element in the backend – one “Create new” and one “Create new relation”, whereby the second button is at the end of a select field.
If I click on “Create new relation” everything fits. A new relation is then created between the elements.
However, if I click on “Create new”, a new data set is not created as expected but the data set that was presumably created last is used – i.e. a new relation is created.
The problem also already exists in 10.4.28 or earlier.
$GLOBALS['TCA']['tt_content']['columns']['xxxxxx'] = [
'exclude' => false,
'label' => 'xxxxxx',
'config' => [
'type' => 'inline',
'foreign_table' => 'xxxxxx',
'foreign_field' => 'content_uid',
'foreign_label' => 'video_uid',
'foreign_sortby' => 'sorting',
'foreign_selector' => 'video_uid',
'foreign_unique' => 'video_uid',
'maxitems' => '100',
'appearance' => [
'useCombination' => true,
'collapseAll' => false,
'expandSingle' => true,
'useSortable' => true,
'enabledControls' => [
'info' => true,
'new' => true,
'dragdrop' => true,
'sort' => true,
'hide' => true,
'delete' => true,
'localize' => true,
],
]
],
];Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 3
-
Dennis Metz changed description <span data-processor="relativetime" data-value="2022-05-19T12:01:30+00:00" > 05/19/22, 12:01 </span>
-
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-16T10:10:59+00:00" > 11/16/26, 10:10 </span> -
Benni Mack changed Related to #97833 <span data-processor="relativetime" data-value="2026-11-16T10:11:05+00:00" > 11/16/26, 10:11 </span>
Closing as duplicate of #97833