Project

General

Profile

Actions

Bug #81314

closed

doubled references upon related record change

Added by Anja Leichsenring over 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2017-05-23
Due date:
% Done:

100%

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

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


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #83009: Avoid invalid references in DataMapProcessorClosed2017-11-15

Actions
Related to TYPO3 Core - Bug #85914: Errors in L10nModeUpdater with "l10n_mode = exclude" in pages_language_overlayClosed2018-08-21

Actions
Has duplicate TYPO3 Core - Bug #85168: Language synchronization fails for inline relations within inline relationsClosed2018-06-06

Actions
Actions

Also available in: Atom PDF