Issue Bug Closed

#79057TCA IRRE columnsOverrides "foreign_record_defaults" not applied on new element

Jan Delius 12/21/16, 11:31 updated 10/02/18, 11:04

Description

When creating a new IRRE child, the overriden default values are not applied.

Example tca:

'pagetab' => array (
        'exclude' => 0,
        'label'    => 'my field',
        'config' => array (
            'type' => 'inline',
            'foreign_table' => 'myforeigntable',
            'foreign_field' => 'myforeignfield',
            'foreign_record_defaults' => array(
                'dtype' => 'mytestvalue',
            ),
        ),
    ),

Override:

$GLOBALS['TCA']['tt_content']['types']['mycustomcontentelement'] = array(
    'columnsOverrides' => array(
        'pagetab' => array(
            'config' => array(
                'foreign_record_defaults' => array(
                    'dtype' => 'myothertestvalue',
                ),
            ),
        ),
    ),

When you click on the new child button the value “mytestvalue” were added. But the correct value should be “myothertestvalue”.

Reviews 0

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