[BUGFIX] Include DB queries with free mode records 59/58859/3
authorBenni Mack <benni@typo3.org>
Tue, 6 Nov 2018 15:24:06 +0000 (16:24 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 8 Nov 2018 16:41:08 +0000 (17:41 +0100)
commitec2340a691983168b5a3431ac994b266a5f85cf3
tree22fbc3693880a06b0dc9114f0ab6efbcbae00bfe
parent3cdf60a9e5af210ddee5f81e70335b8ef5cb3769
[BUGFIX] Include DB queries with free mode records

With the new site handling, the overlayType for fetching
records in the frontend context is always set to
OVERLAYS_ON_WITH_FLOATING, which resolves to
the previous TypoScript settings:
- config.sys_language_overlay = 1
- styles.content.get.select.includeRecordsWithoutDefaultTranslation = 1

However, the place where "includeRecordsWithoutDefaultTranslation"
is evaluated does not check for the actual
Language Aspect of the Context API, which makes
it impossible to fetch records without "l10n_parent"
= (free mode), except for setting this option
explicitly on each TypoScript "select." query.

The patch moves the functionality into a separate method,
which allows to better unit test all options.

Resolves: #86627
Releases: master
Change-Id: I3a9005dcf13ddd26962da0d2ed930929c3f3b288
Reviewed-on: https://review.typo3.org/58859
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Chris Müller <typo3@krue.ml>
Reviewed-by: Chris Müller <typo3@krue.ml>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Context/LanguageAspectFactory.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php