[BUGFIX] Search for site root only in default language pages 28/64628/4
authorChristian Toffolo <ian@webian.it>
Mon, 1 Jun 2020 09:15:02 +0000 (11:15 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 5 Jun 2020 12:14:39 +0000 (14:14 +0200)
Resolves: #91550
Releases: master, 10.4, 9.5
Change-Id: I1de1eadbac4b4973250bba2dbf887efb19df872d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64628
Tested-by: Jonas Eberle <flightvision@googlemail.com>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php

index 240ac11..75a94c7 100644 (file)
@@ -172,7 +172,8 @@ class BackendConfigurationManager extends AbstractConfigurationManager
             ->select('uid')
             ->from('pages')
             ->where(
-                $queryBuilder->expr()->eq('is_siteroot', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT))
+                $queryBuilder->expr()->eq('is_siteroot', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)),
+                $queryBuilder->expr()->eq('sys_language_uid', $queryBuilder->createNamedParameter(0, \PDO::PARAM_INT))
             )
             ->orderBy('sorting')
             ->execute()