Skip to content

Commit

Permalink
Fix post install error when fixture installation is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
unlocomqx committed Dec 6, 2021
1 parent b2ec865 commit a445acd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install-dev/controllers/http/process.php
Expand Up @@ -83,6 +83,10 @@ public function process()
}

try {
$fixturesInstalled = $this->session->install_type == 'full' ?
!empty($this->session->process_validated['installFixtures']) :
true;

if (Tools::getValue('generateSettingsFile')) {
$this->processGenerateSettingsFile();
} elseif (Tools::getValue('installDatabase') && !empty($this->session->process_validated['generateSettingsFile'])) {
Expand All @@ -104,7 +108,7 @@ public function process()
$this->processInstallTheme();
} elseif (Tools::getValue('installFixtures') && !empty($this->session->process_validated['installTheme'])) {
$this->processInstallFixtures();
} elseif (Tools::getValue('postInstall') && !empty($this->session->process_validated['installFixtures'])) {
} elseif (Tools::getValue('postInstall') && $fixturesInstalled) {
$this->processPostInstall();
}
} catch (\Exception $e) {
Expand Down

0 comments on commit a445acd

Please sign in to comment.