Project

General

Profile

Actions

Bug #77301

closed

FormEngine must handle l10n_parent fields correctly even if not a select

Added by Markus Klein over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
Start date:
2016-07-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Yes
Sprint Focus:

Description

The value of l10n_parent can also be from a group field (table_uid|title) and not only an array.

Change the TCA of a l10n_parent field to:

 'l10n_parent' => [
            'displayCond' => 'FIELD:sys_language_uid:>:0',
            'exclude' => 0,
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
            'config' => [
                'type' => 'group',
                'internal_type' => 'db',
                'allowed' => 'tx_myext_domain_model_blub',
                'size' => '1',
                'maxitems' => '1',
                'minitems' => '0',
                'wizards' => [
                    'suggest' => [
                        'type' => 'suggest'
                    ]
                ]
            ],
        ],

The SingleFieldContainer fails to recognize records as being a translation overlay and therefore does not evaluate l10n_mode of fields anymore.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #88768: l10n_parent as group field breaks backendClosedMarkus Klein2019-07-15

Actions
Actions

Also available in: Atom PDF