From b76342d31f5b8ac13ef3574588aef117b18c838e Mon Sep 17 00:00:00 2001 From: Morton Jonuschat <m.jonuschat@mojocode.de> Date: Fri, 4 Sep 2015 10:32:18 +0200 Subject: [PATCH] [BUGFIX] InstallTool: Mark upgrade wizards as done on initial install 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> --- .../Controller/Action/Step/DefaultConfiguration.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/typo3/sysext/install/Classes/Controller/Action/Step/DefaultConfiguration.php b/typo3/sysext/install/Classes/Controller/Action/Step/DefaultConfiguration.php index 2810f55d659b..2f3d4a8d445e 100644 --- a/typo3/sysext/install/Classes/Controller/Action/Step/DefaultConfiguration.php +++ b/typo3/sysext/install/Classes/Controller/Action/Step/DefaultConfiguration.php @@ -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); -- GitLab