[BUGFIX] Site module must show hidden root pages 96/57696/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 26 Jul 2018 19:01:06 +0000 (21:01 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 26 Jul 2018 19:56:52 +0000 (21:56 +0200)
Even if a root page is flagged as hidden it must be
shown in the site module.

Resolves: #85660
Releases: master
Change-Id: I22a0b1888511940e23cb073ef0477b1f0774b3d6
Reviewed-on: https://review.typo3.org/57696
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php

index 4561807..9efb73b 100644 (file)
@@ -31,6 +31,7 @@ use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
 use TYPO3\CMS\Core\Configuration\SiteConfiguration;
 use TYPO3\CMS\Core\Core\Environment;
 use TYPO3\CMS\Core\Database\ConnectionPool;
+use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
 use TYPO3\CMS\Core\Exception\SiteNotFoundException;
 use TYPO3\CMS\Core\Http\HtmlResponse;
 use TYPO3\CMS\Core\Http\RedirectResponse;
@@ -593,6 +594,7 @@ class SiteConfigurationController
     protected function getAllSitePages(): array
     {
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages');
+        $queryBuilder->getRestrictions()->removeByType(HiddenRestriction::class);
         $statement = $queryBuilder
             ->select('*')
             ->from('pages')