Issue Bug New Orphaned

#108739Using "filter" in TCA type "group" is not applied in element browser using columnOverrides

Chris Müller 01/23/26, 08:17 updated 01/23/26, 08:26

Description

When using the filter property in the TCA type “group” the filter is applied by DataHandler on saving (records not matching the filter criteria are removed). But the filter is not applied in the element browser: other records not matching the filter criteria are also displayed and can be selected.

According to the documentation this should work: “The values are filtered in the Element Browser as well as during processing in DataHandler.“
https://docs.typo3.org/permalink/t3tca:confval-group-filter

I am using columnOverrides to adjust the behaviour of the records group field for a custom shortcut content element (only certain content elements are allowed to be selected):

'columnsOverrides' => [
    'records' => [
        'config' => [
            'type' => 'group',
            'allowed' => 'tt_content',
            'maxitems' => 200,
            'size' => 5,
            'filter' => [
                [
                    'userFunc' => RecordsFilter::class . '->filter',
                ],
            ],
        ],
    ],
],

I am using TYPO3 v13.4.24

Edit: If I apply the filter to the records field of the original shortcut element (directly, without columnOverrides), the filter works also in element browser.

Reviews 0

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

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:". How to create a patch

Commit message
[BUGFIX] Using "filter" in TCA type "group" is not applied in element browser using columnOverrides Resolves: #108739 Releases: main