Issue Bug Closed

#88372Extbase QuerySettings ignores SiteConfiguration language settings

Bianca Gotthart 05/16/19, 12:33 updated 01/06/23, 12:27

Description

Precondition:
- Default Language in EN.
- Russia is configured as static (fallbackType)

languages:
  -
    title: 'Global (English)'
    enabled: true
    languageId: '0'
    base: /
    typo3Language: default
    locale: en_UK.utf-8
    iso-639-1: en
    navigationTitle: 'EN'
    hreflang: en-GB
    direction: ltr
    flag: england
    overlayType: 'off'
  -
    title: Russian
    enabled: true
    languageId: '1'
    base: /ru/
    typo3Language: ru
    locale: ru_RU.utf-8
    iso-639-1: ru
    navigationTitle: Russina
    hreflang: ru
    direction: ltr
    fallbackType: strict
    flag: ru

In general, all pages and content elements are rendered correctly as configured (strict mode, no fallback).
But with records in extbase context (eg news record) which exists only in russia, I do not get any records in the frontend unless there already exists a default record of it.

A quickfix for was, to override the NewsRepository and add the following line to the querySettings:

$query->getQuerySettings()->setLanguageOverlayMode(false);

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.