[BUGFIX] Respect language in Section menu 73/49173/2
authorTim Spiekerk├Âtter <diego@sirdiego.de>
Fri, 22 Jul 2016 09:15:14 +0000 (11:15 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 22 Jul 2016 15:37:38 +0000 (17:37 +0200)
Fix a typo inside the query configuration with
causes that there was no languageField key
inside the query configuration. By fixing the typo
the section menu can now render translated records
in the default langauge again.

Resolves: #77210
Releases: master, 7.6
Change-Id: Ibeece79e6aa5e4dbd29b2d613275ac2225d4098f
Reviewed-on: https://review.typo3.org/49173
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Menu/SectionViewHelper.php

index 3826b28..6f22b47 100644 (file)
@@ -128,7 +128,7 @@ class SectionViewHelper extends AbstractViewHelper
         $contentElements = $this->getTypoScriptFrontendController()->cObj->getRecords('tt_content', [
             'where' => $whereStatement,
             'orderBy' => 'sorting',
-            'languageField = sys_language_uid',
+            'languageField' => 'sys_language_uid',
             'pidInList' => (int)$pageUid
         ]);