[BUGFIX] InstallTool: Mark upgrade wizards as done on initial install 11/43011/5
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 4 Sep 2015 08:32:18 +0000 (10:32 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 13 Sep 2015 05:44:05 +0000 (07:44 +0200)
Some upgrade wizards cannot detect that no work needs to be done on a
fresh install. Mark all wizards as done in the default configuration
after the installation is finished.

Resolves: #67637
Releases: master
Change-Id: I7d8c203da3f8e3cd53b37fd09cab58cb43e16a87
Reviewed-on: http://review.typo3.org/43011
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/install/Classes/Controller/Action/Step/DefaultConfiguration.php

index 2810f55..2f3d4a8 100644 (file)
@@ -50,6 +50,14 @@ class DefaultConfiguration extends AbstractStepAction {
                // Setting SYS/isInitialInstallationInProgress to FALSE marks this instance installation as complete
                $configurationValues['SYS/isInitialInstallationInProgress'] = FALSE;
 
+               // Mark upgrade wizards as done
+               $this->loadExtLocalconfDatabaseAndExtTables();
+               if (!empty($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'])) {
+                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'] as $updateClassName) {
+                               $configurationValues['INSTALL/wizardDone/' . $updateClassName] = 1;
+                       }
+               }
+
                /** @var $configurationManager \TYPO3\CMS\Core\Configuration\ConfigurationManager */
                $configurationManager = $this->objectManager->get(\TYPO3\CMS\Core\Configuration\ConfigurationManager::class);
                $configurationManager->setLocalConfigurationValuesByPathValuePairs($configurationValues);