Project

General

Profile

Actions

Bug #77931

closed

foreign_record_defaults values not being stored in DB

Added by Tobi Kretschmann about 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-09-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Default values set in foreign_record_defaults are ignored when saving the element

I created a custom content element called "child-item".
A different content element has a relation that only allows this type of elements.
The Display of this config work perfectly fine.

However the database fields of that related content element are being filled with
CType => textmedia
colPos => 0

'ce_children' => [
            'exclude' => 0,
            'label'   => 'LLL:EXT:myext/Resources/Private/Language/locallang.xlf:ce_children',
            'config'  => [
                'type'                    => 'inline',
                'foreign_table'           => 'tt_content',
                'foreign_field'           => 'ce_parent',
                'foreign_record_defaults' => [
                    'colPos' => '999',
                    'CType'  => 'child-item'
                ],
                'maxitems'                => '50',
            ]
        ],
Actions

Also available in: Atom PDF