Issue Bug Closed

#80944Inline records are duplicated upon saving the master record

Xavier Perseguers 04/21/17, 15:37 updated 04/29/26, 08:00

Description

Context:

  • Locations records (localized)
    • Having Offices are inline relation, may be (externally) localized as well

TCA:

        'offices' => [
            'exclude' => 1,
            'l10n_mode' => 'exclude',
            'label' => 'Offices',
            'config' => [
                'type' => 'inline',
                'foreign_table' => 'tx_myext_domain_model_office',
                'foreign_field' => 'location',
                'foreign_label' => 'name',
                'foreign_sortby' => 'sorting',
                'maxitems' => 20,
                'appearance' => [
                    'collapseAll' => 1,
                    'expandSingle' => 1,
                    'newRecordLinkAddTitle' => 1,
                    'newRecordLinkTitle' => 'New Office',
                ],
            ],
        ],

Since commit e7217da45d1528101aaa2577940a489f45b3029e (#80141), following problem happens:

  • I edit a Location having 2 offices, one of them being “disabled”/“hidden”
  • Doing nothing else than showing the edit form, not expanding either the Offices records
  • Saving
  • Upon form reloading:
    • Disabled Office is still there
    • Visible Office has been duplicated 8 times

Sample extension and data has been shared with Olly for further investigation.

Reviews 0

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