Project

General

Profile

Actions

Bug #91778

closed

Localization wizard missing with rendermode selectTree (allowLanguageSynchronization)

Added by Robert Kärner over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2020-07-10
Due date:
% Done:

100%

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

Description

Two years ago, this issue has already been tackled and solved at bug #84564

In March 2019 this feature has been broken by commit 6c512f2e,
where the values of $readOnly have been changed from 'true'/'false' to 0/1:

$readOnly = !empty($config['readOnly']) ? 1 : 0;

However, the condition to show the $fieldWizardHtml still checks for 'false',
which can never be true if $readOnly equals 0 or 1:

if ($readOnly === 'false' && !empty($fieldWizardHtml)) {
    $html[] =       '<div class="form-wizards-items-bottom">';
    $html[] =           $fieldWizardHtml;
    $html[] =       '</div>';
}

Please see typo3/sysext/backend/Classes/Form/Element/SelectTreeElement.php
lines 84 and 173.

Right now, the language synchronization of page categories can still be enabled with

$GLOBALS['TCA']['pages']['columns']['categories']['config']['behaviour']['allowLanguageSynchronization'] = true;

and it works fine, but editors can't turn off this behaviour for individual pages.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #87987: Migrate SelectTreeElement to TypeScriptClosedAndreas Kienast2019-03-23

Actions
Related to TYPO3 Core - Bug #93497: Localization state missing for TCA SelectTreeElementClosed2021-02-12

Actions
Actions

Also available in: Atom PDF