From 8e10cf9b728f97b9d449a410c33282bca612e3f2 Mon Sep 17 00:00:00 2001 From: odain Date: Thu, 4 Dec 2025 18:07:43 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08760=20:=20fix=20broken=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ci: fix merge --- setup/extensionsmap.class.inc.php | 12 ++++++------ setup/runtimeenv.class.inc.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/setup/extensionsmap.class.inc.php b/setup/extensionsmap.class.inc.php index a5b95f517..e2d9091eb 100644 --- a/setup/extensionsmap.class.inc.php +++ b/setup/extensionsmap.class.inc.php @@ -284,7 +284,7 @@ class iTopExtensionsMap public function RemoveExtension(string $sCode): void { - $oExtension = $this->Get($sCode); + $oExtension = $this->GetFromExtensionCode($sCode); if (is_null($oExtension)) { \IssueLog::Error(__METHOD__.": cannot find extension to remove", null, [$sCode]); @@ -317,7 +317,7 @@ class iTopExtensionsMap $aRes = []; foreach (array_diff($aExtensionsFromDb, $aSelectedExtensions) as $sExtensionCode) { - $oExtension = $this->Get($sExtensionCode); + $oExtension = $this->GetFromExtensionCode($sExtensionCode); if (!is_null($oExtension) && $oExtension->bVisible && $oExtension->sSource != iTopExtension::SOURCE_WIZARD) { \SetupLog::Info(__METHOD__."$sExtensionCode", null, ['visible' => $oExtension->bVisible, 'mandatory' => $oExtension->bMandatory]); @@ -510,7 +510,7 @@ class iTopExtensionsMap */ public function MarkAsChosen($sExtensionCode, $bMark = true) { - $oExtension = $this->Get($sExtensionCode); + $oExtension = $this->GetFromExtensionCode($sExtensionCode); if (!is_null($oExtension)) { $oExtension->bMarkedAsChosen = $bMark; } @@ -518,7 +518,7 @@ class iTopExtensionsMap public function MarkAsUninstallable($sExtensionCode, $bMark = true) { - $oExtension = $this->Get($sExtensionCode); + $oExtension = $this->GetFromExtensionCode($sExtensionCode); if (!is_null($oExtension)) { $oExtension->bUninstallable = $bMark; } @@ -531,7 +531,7 @@ class iTopExtensionsMap */ public function IsMarkedAsChosen($sExtensionCode) { - $oExtension = $this->Get($sExtensionCode); + $oExtension = $this->GetFromExtensionCode($sExtensionCode); if (!is_null($oExtension)) { return $oExtension->bMarkedAsChosen; } @@ -547,7 +547,7 @@ class iTopExtensionsMap */ protected function SetInstalledVersion($sExtensionCode, $sInstalledVersion) { - $oExtension = $this->Get($sExtensionCode); + $oExtension = $this->GetFromExtensionCode($sExtensionCode); if (!is_null($oExtension)) { $oExtension->sInstalledVersion = $sInstalledVersion; } diff --git a/setup/runtimeenv.class.inc.php b/setup/runtimeenv.class.inc.php index 705e3641a..455009aab 100644 --- a/setup/runtimeenv.class.inc.php +++ b/setup/runtimeenv.class.inc.php @@ -76,7 +76,7 @@ class RunTimeEnvironment // mark as (automatically) chosen alll the "remote" modules present in the // target environment (data/-modules) // The actual choices will be recorded by RecordInstallation below - $this->oExtensionsMap = new iTopExtensionsMap($this->sTargetEnv, true, $aExtraDirs); + $this->oExtensionsMap = new iTopExtensionsMap($this->sTargetEnv, $aExtraDirs); $this->oExtensionsMap->LoadChoicesFromDatabase($oSourceConfig); }