Project

General

Profile

Actions

Bug #90997

open

DataHandler tries to translate relations that are set as non-translatable

Added by Jonas Eberle over 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2020-04-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
localization relations
Complexity:
Is Regression:
Sprint Focus:

Description

Given a TCA like this

table1.php

return [
    'ctrl'      => [
        ...
        'languageField'            => 'sys_language_uid',
        'transOrigPointerField'    => 'l10n_parent',
        'transOrigDiffSourceField' => 'l10n_diffsource',
    ],
    ...
    'columns'   => [        
        'table2' => [
            'label'     => 'Label',
            'l10n_mode' => 'exclude',
            'config'    => [
                'type'          => 'inline',
                'foreign_table' => 'table2',
                'foreign_field' => 'title',
            ],
        ],
    ],
];

table2.php

<?php declare(strict_types=1);
return [
    'ctrl'      => [
        ...
        // no language_field
    ],
    ...
    'columns'   => [
        'title' => [ ... ]
    ]
];

I get : Localization failed; "languageField" and "transOrigPointerField" must be defined for the table table2 when I try to translate table1.

I would assume from https://docs.typo3.org/m/typo3/reference-tca/master/en-us/Ctrl/Index.html that such a configuration is possible. At least I cannot see that these fields are required.


Files

Screenshot_20200410_152808.png (7.79 KB) Screenshot_20200410_152808.png Jonas Eberle, 2020-04-10 15:29

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #90170: Datahandler localize translates inline records with non-translatable parent recordNew2020-01-22

Actions
Actions

Also available in: Atom PDF