Bug #81314
closeddoubled references upon related record change
100%
Description
Situation:
A pages record has been extended with some fields, each holds a file_reference_record. The TCA is standard with a maxitems = 1.
Additionally, the record holds a n:1 relation to another custom table record.
Meaning, the custom table record has many children, that are pages records. But each pages record can only hold relation to one custom table record.
Those pages records might or might not be translated.
The custom table record is not translated.
How to reproduce:
the child record (custom table) gets edited in BE.
Upon saving, the following exception is shown:
#1486233164: Child record was not processed, reason "[1.0.-1]: [newlog()] Attempt to localize record without permission".
Problem:
After the exception has been shown and the first record (pages) is opened again for editing, all references have been doubled, causing validation errors for the record.
TCA for the relation of custom table -> pages:
'pages' => [ 'exclude' => 0, 'label' => label', 'config' => [ 'type' => 'inline', 'foreign_table' => 'pages', 'foreign_field' => 'partner', 'appearance' => [ 'collapseAll' => true, 'expandSingle' => false, 'enabledControls' => [ 'sort' => false, 'new' => false, 'delete' => false, 'info' => false ] ], ], ],
Files