Issue Bug Closed

#91778Localization wizard missing with rendermode selectTree (allowLanguageSynchronization)

Robert Kärner 07/10/20, 13:09 updated 05/11/21, 15:59

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.

Reviews 2