Bug #89768

l10n_mode "exclude" does not work with inline type

Added by Michal Majernik 13 days ago.

Status:
New
Priority:
Should have
Category:
Extbase + l10n
Target version:
-
Start date:
2019-11-25
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
7.2
Tags:
tca, l10n_mode exclude,inline type
Complexity:
Is Regression:
Sprint Focus:

Description

If I set l10n_mode to "exclude" for inline model, then this model won't be retrieved via its upper model.

Example:
Parent model "Car" has multiple inline "Seat" models with following TCA:

Car:

[
    'ctrl' => [
        'title' => 'Car',
        'label' => 'title',
        'sortby' => 'sorting',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'delete' => 'deleted',
        'versioningWS' => false,
        'hideAtCopy' => true,
        'transOrigPointerField' => 'l10n_parent',
        'transOrigDiffSourceField' => 'l10n_diffsource',
        'languageField' => 'sys_language_uid',
        'translationSource' => 'l10n_source',
        'enablecolumns' => [
            'disabled' => 'hidden',
        ],
        'searchFields' => 'title',
        'iconfile' => 'EXT:example/Resources/Public/Icons/car.gif',
    ],
    'interface' => [...],
    'types' => [...],
    'columns' => [
        ...
        'seat' => [
            'exclude' => false,
            'l10n_mode' => 'exclude',
            'label' => 'Seat',
            'config' => [
                'type' => 'inline',
                'foreign_table' => 'tx_example_domain_model_seat',
                'foreign_field' => 'car',
            ],
        ],
        ...
    ],
]

Seat:

    'ctrl' => [
        'title' => 'Seat',
        'label' => 'title',
        'sortby' => 'sorting',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'delete' => 'deleted',
        'versioningWS' => false,
        'hideAtCopy' => true,
        'languageField' => 'sys_language_uid',
        'enablecolumns' => [
            'disabled' => 'hidden',
        ],
        'searchFields' => 'title,',
        'iconfile' => 'EXT:example/Resources/Public/Icons/seat.gif',
    ],
    ...

If I now create a car with several seats and translate it, then seats are not visible in the translated model (in TYPO3) as expected. If I then try to get it via repository in the frontend, then the translated car has no seats.

Also available in: Atom PDF