diff --git a/setup/extensionsmap.class.inc.php b/setup/extensionsmap.class.inc.php index 7779bc6c09..3cef2e89a7 100644 --- a/setup/extensionsmap.class.inc.php +++ b/setup/extensionsmap.class.inc.php @@ -710,7 +710,7 @@ class iTopExtensionsMap } } - public static function GetChoicesFromDatabase(Config $oConfig): array|false + public function GetChoicesFromDatabase(Config $oConfig): array|false { try { if (CMDBSource::DBName() === null) { @@ -739,7 +739,7 @@ class iTopExtensionsMap */ public function GetSelectedExtensions(Config $oConfig, array $aAddedExtensions, array $aRemovedExtensions): array { - $aDbChoices = self::GetChoicesFromDatabase($oConfig); + $aDbChoices = $this->GetChoicesFromDatabase($oConfig); foreach ($aDbChoices as $i => $sChoice) { if (in_array($sChoice, $aRemovedExtensions)) { unset($aDbChoices[$i]); diff --git a/setup/wizardsteps/WizStepLandingBeforeAudit.php b/setup/wizardsteps/WizStepLandingBeforeAudit.php index c77db51359..11eb5d0af4 100644 --- a/setup/wizardsteps/WizStepLandingBeforeAudit.php +++ b/setup/wizardsteps/WizStepLandingBeforeAudit.php @@ -74,7 +74,6 @@ class WizStepLandingBeforeAudit extends WizStepModulesChoice // Component selection in previous screens if ($this->oWizard->GetParameter('selected_components', '[]') === '[]') { - $aSelectedComponents = $this->GetSelectedComponents($this->aSteps, $this->oWizard->GetParameter('selected_extensions', '[]')); $this->oWizard->SetParameter('selected_components', json_encode($aSelectedComponents)); } else {