Issue Bug Closed

#77931foreign_record_defaults values not being stored in DB

Tobi Kretschmann 09/13/16, 11:39 updated 03/25/20, 18:32

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',
            ]
        ],

Reviews 0

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