Project

General

Profile

Actions

Bug #82122

closed

Typo3DbBackend::doLanguageAndWorkspaceOverlay ignores pages l18n_cfg

Added by Christian Weiske over 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-08-17
Due date:
% Done:

0%

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

Description

Page records have a l18n_cfg bit field that has one bit for "Hide page if no translation for current language exists".

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::doLanguageAndWorkspaceOverlay() does ignore this setting, so that pages without a translation into the current language are returned despite the "hide page if not translation" setting being active.

The method relies on
TYPO3\CMS\Frontend\Page\PageRepository::getPagesOverlay(), which also ignores l18n_cfg.

One of those methods should take care of handling the page l18n_cfg property.

Steps to reproduce:

  1. Setup a second language in TYPO3
  2. Create a page with "Hide page if no translation for current language exists" set
  3. In the frontend page with L=1, use Extbase\Persistence\Generic\Query to fetch this page
  4. The page will be returned, but should not

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #84139: l18n_cfg not respected in sysext/frontend/Classes/Page/PageRepository.phpClosed2018-03-05

Actions
Related to TYPO3 Core - Bug #85063: \TYPO3\CMS\Frontend\Typolink\PageLinkBuilder::build doesn't honor l18n_cfg settingsClosed2018-05-22

Actions
Related to TYPO3 Core - Bug #75014: l18n_cfg not respected in fluid_styled_contents of type special menuClosed2016-03-10

Actions
Actions

Also available in: Atom PDF