[BUGFIX] Initialize site configuration for new sites 52/58352/3
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 20 Sep 2018 13:46:28 +0000 (15:46 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 20 Sep 2018 15:17:01 +0000 (17:17 +0200)
Since a regression in #86323 the site configuration for new sites
must be initialized correctly to avoid exceptions.

Resolves: #86333
Related: #86323
Releases: master
Change-Id: I4d44c01e7789f62811208e1e29655c92821e6b95
Reviewed-on: https://review.typo3.org/58352
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php

index a2939cf..7c51df0 100644 (file)
@@ -230,6 +230,7 @@ class SiteConfigurationController
             $currentSiteConfiguration = $currentSite->getConfiguration();
             $currentIdentifier = $currentSite->getIdentifier();
         } catch (SiteNotFoundException $e) {
+            $currentSiteConfiguration = [];
             $isNewConfiguration = true;
             $pageId = (int)$parsedBody['rootPageId'];
             if (!$pageId > 0) {