Issue Bug New

#96626In TCA group fields the suggest wizard shows records in all languages

Lina Wolf 01/24/22, 11:04 updated 11/09/26, 11:30

Description

on searching I find records in all languages without a hint which record is in which language.

by setting the searchcondition

'myfield' => array(
        'config' => [
            'type' => 'group',
            'allowed' => 'tx_xyz',
            'foreign_table' => 'tx_xyz',
            'MM' => 'tx_mymm',
            'suggestOptions' => [
                'default' => [
                    'searchCondition' => '(type = 0) AND sys_language_uid = 0'
                ],
            ]
        ],
    ),

I can limit it to the default language. However there seems to be no way to limit the records to the language of the language of the current record. That would have to be something akin to `sys_language_uid = ###REC_FIELD_sys_language_uid###` however this marker is not available in the suggest wizard.

Furthermore it would be important to display the language of records in the suggest wizard.

You currently cannot see which language a record is from if the title is the same:

group_suggest.png

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] In TCA group fields the suggest wizard shows records in all languages Resolves: #96626 Releases: main

Files 1

History 531

Show 36 earlier messages