Skip to content

Commit

Permalink
[BUGFIX] Use keyword "root" for default pidInList in language mode (F…
Browse files Browse the repository at this point in the history
…luidTYPO3#1594)

Fixes the problem that if variable "language" is set in the viewhelper
for example "0,1" then nothing is returned.
  • Loading branch information
123AltmarkAgentur authored and NamelessCoder committed Oct 10, 2019
1 parent 5312c07 commit d3c53f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Page/LanguageMenuViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected function parseLanguageMenu()
$limitLanguages = array_filter($limitLanguages);

if (!empty($limitLanguages)) {
$sysLanguage = $GLOBALS['TSFE']->cObj->getRecords($from, ['selectFields' => $select, 'pidInList' => -1, 'uidInList' => implode(',', $limitLanguages)]);
$sysLanguage = $GLOBALS['TSFE']->cObj->getRecords($from, ['selectFields' => $select, 'pidInList' => 'root', 'uidInList' => implode(',', $limitLanguages)]);
} else {
$sysLanguage = $GLOBALS['TSFE']->cObj->getRecords($from, ['selectFields' => $select, 'pidInList' => 'root']);
}
Expand Down

0 comments on commit d3c53f4

Please sign in to comment.