Bug #61835

Copying IRRE child records behaviour differs with certain TCA settings

Added by Matthias Krappitz almost 5 years ago. Updated over 3 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2014-09-24
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Having a parent record, that has child records via TCA type inline with foreign_field usage in the parent record table, the child records get duplicated on copying a parent record (which I would call an expectable behaviour from the editors point of view):

'children' => array(
    'exclude' => 0,
    'label' => 'LLL:EXT:test/Resources/Private/Language/locallang_db.xlf:tx_test_domain_model_testparent.children',
    'config' => array(
        'type' => 'inline',
        'foreign_table' => 'tx_test_domain_model_testchild',
        'foreign_field' => 'testparent',
        'maxitems'      => 9999,
        'appearance' => array(
            'collapseAll' => 0,
            'levelLinksPosition' => 'top',
            'showSynchronizationLink' => 1,
            'showPossibleLocalizationRecords' => 1,
            'showAllLocalizationLink' => 1
        ),
    ),

),

If this inline field is used without foreign_field, but with an MM table like in the following example, the child records do not get duplicated on copying the parent record. They are associated as references in sync with the original parent record. So if one edits a child record in the copy of the parent record, the child changes as well in the orignal parent record. This what I would not call an expected behaviour:

'children' => array(
    'exclude' => 0,
    'label' => 'LLL:EXT:test/Resources/Private/Language/locallang_db.xlf:tx_test_domain_model_testparent.children',
    'config' => array(
        'type' => 'inline',
        'foreign_table' => 'tx_test_domain_model_testchild',
        'MM' => 'tx_test_domain_model_testparent_children_mm',
        'maxitems'      => 9999,
        'appearance' => array(
            'collapseAll' => 0,
            'levelLinksPosition' => 'top',
            'showSynchronizationLink' => 1,
            'showPossibleLocalizationRecords' => 1,
            'showAllLocalizationLink' => 1
        ),
    ),

),

So, to my mind there should be a unified and of course configurable behaviour in this aspect, rather than an unconfigurable and kind of random / unpredictable behavior.

See also:
http://stackoverflow.com/questions/17234135/typo3-copying-irre-child-records

History

#1 Updated by Faktor E GmbH over 3 years ago

Any update on this issue?

Also available in: Atom PDF