Issue Bug New Quiet Regression

#107638InlineControlContainer uses hardcoded element browser type ("db") instead of respecting field configuration

Anton Danilov 10/09/25, 12:55 updated 09/24/26, 16:08

Description

Since the introduction of TCA type=“file” and the related separation of logic into `FilesControlContainer` (https://forge.typo3.org/issues/98479
), the `InlineControlContainer` class still hardcodes the data-mode=“db” value for the element browser.

$item .= '
                <button type="button" class="btn btn-default t3js-element-browser" data-mode="db" data-params="' . htmlspecialchars('|||' . implode(',', $allowed) . '|' . $objectPrefix) . '"
                    ' . $buttonStyle . ' title="' . $createNewRelationText . '">
                    ' . $this->iconFactory->getIcon('actions-insert-record', Icon::SIZE_SMALL)->render() . '
                    ' . $createNewRelationText . '
                </button>';

Previously, the element browser type was determined dynamically via `elementBrowserType`, allowing for group fields with file relations to behave correctly.
This results in incorrect behavior when using custom element browser, as the browser always assumes “db” type.
Expected Behavior: The element browser type should be derived from the foreign field configuration as it was before the refactoring.

Reviews 1

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch

Commit message
[BUGFIX] InlineControlContainer uses hardcoded element browser type ("db") instead of respecting field configuration Resolves: #107638 Releases: main