Project

General

Profile

Actions

Bug #79057

closed

TCA IRRE columnsOverrides "foreign_record_defaults" not applied on new element

Added by Jan Delius over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2016-12-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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".


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #76671: columnsOverrides does not affect newly added inline elementsClosed2016-06-17

Actions
Actions

Also available in: Atom PDF