Skip to content

Commit

Permalink
[BUGFIX] Do not generate site configuration for localized root pages
Browse files Browse the repository at this point in the history
A new condition is added to the `CreateSiteConfiguration` DataHandler
hook which avoids the creation of a new site configuration for
localizations of root pages.

Resolves: #91845
Releases: master, 10.4
Change-Id: Ic51ba62600f4304920b66afe53b66e598404a104
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65107
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
  • Loading branch information
andreaskienast authored and maddy2101 committed Jul 30, 2020
1 parent 51a9d0c commit 5140799
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions typo3/sysext/core/Classes/Hooks/CreateSiteConfiguration.php
Expand Up @@ -51,6 +51,7 @@ public function processDatamap_afterDatabaseOperations(string $status, string $t
* - live workspace
* - resolved uids
* - pages on root level
* - pages in default language
* - non-versioned records
* - allowed doktypes
* - not bulk importing things via CLI
Expand All @@ -60,6 +61,7 @@ public function processDatamap_afterDatabaseOperations(string $status, string $t
|| $dataHandler->BE_USER->workspace > 0
|| !isset($dataHandler->substNEWwithIDs[$id])
|| (int)$fieldValues['pid'] !== 0
|| (int)$fieldValues['l10n_parent'] !== 0
|| (isset($fieldValues['t3ver_oid']) && (int)$fieldValues['t3ver_oid'] > 0)
|| !in_array((int)$fieldValues['doktype'], $this->allowedPageTypes, true)
|| $dataHandler->isImporting
Expand Down

0 comments on commit 5140799

Please sign in to comment.