Commit 0d027af0 authored by Mathias Schreiber's avatar Mathias Schreiber Committed by Andreas Wolf
Browse files

[BUGFIX] Do not show sysfolders on pid 0 in sites module

Pages of the doktype “sys_folder” are no longer shown as valid entrypoints
into a site.

Resolves: #84663
Releases: master
Change-Id: I92fa2966ccf9319df52d656a30ec35a767c2dd21
Reviewed-on: https://review.typo3.org/56604

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Reviewed-by: Andreas Wolf's avatarAndreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf's avatarAndreas Wolf <andreas.wolf@typo3.org>
parent 8814cce6
......@@ -42,6 +42,7 @@ use TYPO3\CMS\Core\Site\Entity\Site;
use TYPO3\CMS\Core\Site\SiteFinder;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\View\StandaloneView;
use TYPO3\CMS\Frontend\Page\PageRepository;
use TYPO3Fluid\Fluid\View\ViewInterface;
/**
......@@ -605,7 +606,10 @@ class SiteConfigurationController
->where(
$queryBuilder->expr()->eq('sys_language_uid', 0),
$queryBuilder->expr()->orX(
$queryBuilder->expr()->eq('pid', 0),
$queryBuilder->expr()->andX(
$queryBuilder->expr()->eq('pid', 0),
$queryBuilder->expr()->neq('doktype', PageRepository::DOKTYPE_SYSFOLDER)
),
$queryBuilder->expr()->eq('is_siteroot', 1)
)
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment