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 #1

Updated by Christian Kuhn over 7 years ago

"Currently, it only affects the display of form fields, but not the data handling."

https://docs.typo3.org/typo3cms/TCAReference/Reference/Types/Index.html#columnsoverrides

Especially overriding TCA of inline children is currently not supported (and it would be complex to implement properly, so it will probably not be supported later, too).

Actions #2

Updated by Christian Kuhn over 7 years ago

  • Status changed from New to Resolved

resolved as duplicate of #76671

Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF