Issue Bug Closed

#101796SuggestWizardController doesn't respect TCA overrides on new Content elements

Markus Hofmann 08/30/23, 10:31 updated 07/09/24, 15:19

Description

When restricting allowed tables on group field via columnsOverrides, creating a
new content element and adding a record via SuggestWizard, the wizard doesn’t
respect the columnsOverrides restriction.

After first save and testing again, the restrictions are respected.

Example configuration for tt_content field records

$GLOBALS['TCA']['tt_content']['types']['contact']['columnsOverrides']['records'] = [
    'config' => [
        'allowed' => 'tt_address',
    ],
];

Current behaviour:

When creating a new content element with no ID given, the SuggestWizardController
is not able to detect the correct override setting, as the controller fetches the
information of possible overrides from the at this moment not saved record from database.

Expected behaviour:

Using the suggest in group field only returns records, which are allowed.

Reviews 3