Project

General

Profile

Actions

Bug #90642

closed

Reload when changing fallBackType is not needed anymore

Added by Nikita Hovratov over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-03-04
Due date:
% Done:

100%

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

Description

Before "Free mode" was introduced again, the fallbacks were only shown if "fallBackType" was set to "fallback" and thus the reload was needed. Now they are always shown, if the languageUid is > 0.

TCA for fallbackType and fallbacks

        'fallbackType' => [
            'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbackType',
            'displayCond' => 'FIELD:languageId:>:0',
--->        'onChange' => 'reload',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingle',
                'items' => [
                    ['Strict: Show only translated content, based on overlays', 'strict'],
                    ['Fallback: Show default language if no translation exists', 'fallback'],
                    ['Free mode: Ignore translation and overlay concept, only show data from selected language', 'free'],
                ],
            ],
        ],
        'fallbacks' => [
            'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbacks',
--->        'displayCond' => 'FIELD:languageId:>:0',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectMultipleSideBySide',
                'items' => [
                    ['Default Language', 0],
                ],
                'foreign_table' => 'sys_language',
                'size' => 5,
                'min' => 0,
            ],
        ],
Actions

Also available in: Atom PDF