Actions
Bug #88372
closedExtbase QuerySettings ignores SiteConfiguration language settings
Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
Extbase + l10n
Target version:
-
Start date:
2019-05-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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);
Actions