Actions
Bug #79057
closedTCA IRRE columnsOverrides "foreign_record_defaults" not applied on new element
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".
Updated by Christian Kuhn almost 8 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).
Updated by Christian Kuhn almost 8 years ago
- Status changed from New to Resolved
resolved as duplicate of #76671
Actions