From a5f4595980cf3d6c7d5ce9ec829b00137db407dc Mon Sep 17 00:00:00 2001 From: Timmy38 Date: Wed, 3 Jun 2026 15:37:09 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B09179=20Fix=20missing=20optional=20steps?= =?UTF-8?q?=20when=20using=20older=20install-xxxx.xml=20file=20with=20unat?= =?UTF-8?q?tended=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/sequencers/ApplicationInstallSequencer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/sequencers/ApplicationInstallSequencer.php b/setup/sequencers/ApplicationInstallSequencer.php index d17b19eeb..722f3432d 100644 --- a/setup/sequencers/ApplicationInstallSequencer.php +++ b/setup/sequencers/ApplicationInstallSequencer.php @@ -81,13 +81,13 @@ class ApplicationInstallSequencer extends StepSequencer return $this->ComputeNextStep($sStep); case 'log-parameters': - if (array_key_exists($sStep, $this->oParams->Get('optional_steps', []))) { + if ($this->HasOptionalStep($sStep)) { $this->DoLogParameters(); } return $this->ComputeNextStep($sStep); case 'backup': - if (array_key_exists($sStep, $this->oParams->Get('optional_steps', []))) { + if ($this->HasOptionalStep($sStep, false)) { $aBackupOptions = $this->oParams->Get('optional_steps')['backup']; // __DB__-%Y-%m-%d $sDestination = $aBackupOptions['destination']; @@ -100,7 +100,7 @@ class ApplicationInstallSequencer extends StepSequencer case 'migrate-before': $this->oRunTimeEnvironment->EnterMaintenanceMode($this->GetConfig()); - if (array_key_exists($sStep, $this->oParams->Get('optional_steps', []))) { + if ($this->HasOptionalStep($sStep)) { $this->oRunTimeEnvironment->MigrateDataBeforeUpdateStructure($this->oParams->Get('mode'), $this->GetConfig()); } return $this->ComputeNextStep($sStep); @@ -111,7 +111,7 @@ class ApplicationInstallSequencer extends StepSequencer return $this->ComputeNextStep($sStep); case 'migrate-after': - if (array_key_exists($sStep, $this->oParams->Get('optional_steps', []))) { + if ($this->HasOptionalStep($sStep)) { $this->oRunTimeEnvironment->MigrateDataAfterUpdateStructure($this->oParams->Get('mode'), $this->GetConfig()); } return $this->ComputeNextStep($sStep);