Bug #92100

Yaml File Loader doesn't keep imported items in the order in which they are imported

Added by Jigal van Hemert 3 months ago. Updated 3 months ago.

Status:
Under Review
Priority:
Should have
Category:
Miscellaneous
Target version:
-
Start date:
2020-08-26
Due date:
% Done:

0%

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

Description

In a multi-site multi-language installation the sites configuration is built from various imported files. If you import languages in a certain order they appear in the reversed order in the resulting configuration. This means that the wrong language is seen as the default language.

imports:
  - { resource: 'English.yaml' }
  - { resource: 'German.yaml' }

and English.yaml contains stuff like

languages:
  -
    title: English
    enabled: true
    languageId: 0
    base: '/'
    typo3Language: default
    locale: en_US.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-US
    direction: ''
    fallbackType: strict
    flag: gb

Then the German configuration comes first, which makes that the default configuration.

#1

Updated by Gerrit Code Review 3 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65458

#2

Updated by Gerrit Code Review 3 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65458

#3

Updated by Gerrit Code Review 3 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65458

Also available in: Atom PDF