[BUGFIX] Usage of sys_lang_mode in Typo3DbBackend 32/25932/5
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 4 Dec 2013 05:50:29 +0000 (06:50 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 14 Jan 2014 08:08:13 +0000 (09:08 +0100)
Due refactoring the property $languageMode is compared but is never
filled. The property from the querySettings has to be used.

Change-Id: I8f66a10548213513b8cc5a3a90cc219ed5f91918
Resolves: #54182
Releases: 6.2
Reviewed-on: https://review.typo3.org/25932
Reviewed-by: Markus Klein
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php

index 2e20bcd..460c5bf 100644 (file)
@@ -1178,7 +1178,7 @@ class Typo3DbBackend implements \TYPO3\CMS\Extbase\Persistence\Generic\Storage\B
                                        && $GLOBALS['TCA'][$tableName]['ctrl']['languageField'] !== ''
                                ) {
                                        if (in_array($row[$GLOBALS['TCA'][$tableName]['ctrl']['languageField']], array(-1, 0))) {
-                                               $overlayMode = $languageMode === 'strict' ? 'hideNonTranslated' : '';
+                                               $overlayMode = $querySettings->getLanguageMode() === 'strict' ? 'hideNonTranslated' : '';
                                                $row = $pageRepository->getRecordOverlay($tableName, $row, $querySettings->getLanguageUid(), $overlayMode);
                                        }
                                }