[BUGFIX] Only show default language pages for sorting 08/56808/2
authorBenni Mack <benni@typo3.org>
Wed, 25 Apr 2018 15:31:28 +0000 (17:31 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 25 Apr 2018 21:32:56 +0000 (23:32 +0200)
The sorting of subpages also shows all translations
which leads to very bad side-effects due to the removal
of pages_language_overlay. This case wasn't fixed yet.

The query for fetching all subpages is now adapted to
only fetch pages with sys_language_uid=0.

Resolves: #84871
Releases: master
Change-Id: Id5e491db2d05fb03f297b4b843971ba8d45dfba9
Reviewed-on: https://review.typo3.org/56808
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>

index 1d9c4ce..c0b0363 100644 (file)
@@ -203,6 +203,7 @@ class SortSubPagesController
         return $queryBuilder->select('*')
+                $queryBuilder->expr()->eq('sys_language_uid', 0),
                     $queryBuilder->createNamedParameter($parentPageUid, \PDO::PARAM_INT)