Project

General

Profile

Actions

Bug #85168

closed

Language synchronization fails for inline relations within inline relations

Added by Florian Wessels over 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2018-06-06
Due date:
% Done:

0%

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

Description

The synchronization process will fail for synchronizing inline relations within inline relations when there are more than one language which should be synchronized from default or source language. Following error occures:

#1486233164: Child record was not processed

TCA of the main object:

[...]
'columns' => [
    'products' => [
        'exclude' => false,
        'label' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:tx_myext_domain_model_productwrapper.products',
        'config' => [
            'type' => 'inline',
            'foreign_table' => 'tx_myext_domain_model_product',
            'foreign_field' => 'productwrapper',
            'foreign_sortby' => 'sorting',
            'maxitems' => 9999,
            'appearance' => [
                'collapseAll' => true,
                'levelLinksPosition' => 'top',
                'showSynchronizationLink' => 1,
                'showPossibleLocalizationRecords' => 1,
                'showAllLocalizationLink' => 1,
                'useSortable' => true,
                'expandSingle' => 1,
                'enabledControls' => [
                    'sort' => true,
                    'delete' => true,
                    'hide' => true,
                    'localize' => true,
                    'dragdrop' => true,
                ],
            ],
        ],
    ],
]

TCA of inline element:

'columns' => [
    'images' => [
        'exclude' => false,
        'label' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:tx_myext_domain_model_product.images',
        'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
            'images',
            [
                'appearance' => [
                    'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference',
                    'collapseAll' => true,
                ],
                'behaviour' => [
                    'allowLanguageSynchronization' => true,
                ],
                'foreign_types' => [
                    '0' => [
                        'showitem' => '
                                --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                                --palette--;;filePalette',
                    ],
                    \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT => [
                        'showitem' => '
                             --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                             --palette--;;filePalette',
                    ],
                    \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [
                        'showitem' => '
                            --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
                            --palette--;;filePalette',
                    ],
                ],
                'maxitems' => 10,
            ],
            $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
        ),
    ],
]


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #81314: doubled references upon related record changeClosed2017-05-23

Actions
Actions #1

Updated by Florian Wessels over 6 years ago

The problem is that

$this->isNestedElementCallRegistered($table, $uid, 'localize')

returns true in localize method of TYPO3\CMS\Core\DataHandling\DataHandler.
This will skip the localization process and the RuntimeException 1486233164 ("Child record was not processed") will be thrown.

Actions #2

Updated by Stephan Schuler about 6 years ago

Hey there.

If I'm not completely wrong, that's the same as #81314.

Regards,
Stephan.

Actions #3

Updated by Michael Stucki over 5 years ago

  • Status changed from New to Resolved

This bug is a duplicate of #81314. Closing here...

Actions #4

Updated by Michael Stucki over 5 years ago

  • Is duplicate of Bug #81314: doubled references upon related record change added
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by Gerrit Code Review almost 5 years ago

  • Status changed from Closed to Under Review

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60722

Actions #7

Updated by Michael Stucki almost 5 years ago

  • Status changed from Under Review to Resolved
Actions #8

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF