Commit 9e937b46 authored by Jochen Roth's avatar Jochen Roth Committed by Stefan Bürk
Browse files

[BUGFIX] Exclude doktypes in SiteConfiguration

Currently, only SysFolders are excluded in
the SiteConfiguration overview which allows
to add a SiteConfiguration to pages where
it is superfluous.

This has been fixed by adding doktype spacer, recycler,
external link to the list of excluded doktypes in
the queryBuilder statement.

Resolves: #97609
Releases: main, 11.5
Change-Id: Idfb5a97c8780117b5b478c14e0d2e2946dfbca8e

Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Stefan Bürk's avatarStefan Bürk <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <>
parent a8fd1882
......@@ -702,6 +702,7 @@ class SiteConfigurationController
* Returns a list of pages that have 'is_siteroot' set
* or are on pid 0 and not in list of excluded doktypes
protected function getAllSitePages(): array
......@@ -716,7 +717,12 @@ class SiteConfigurationController
$queryBuilder->expr()->eq('pid', 0),
$queryBuilder->expr()->neq('doktype', PageRepository::DOKTYPE_SYSFOLDER)
$queryBuilder->expr()->notIn('doktype', [
$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