N°8760 - fix installation choices db query - read code instead of title + add log

This commit is contained in:
odain
2026-02-08 20:34:40 +01:00
parent 2b21556c76
commit 5b58e40fc9
2 changed files with 7 additions and 2 deletions

View File

@@ -577,7 +577,7 @@ class iTopExtensionsMap
$aChoices = [];
foreach ($aDBInfo as $aExtensionInfo) {
$aChoices[] = $aExtensionInfo['label'];
$aChoices[] = $aExtensionInfo['code'];
}
return $aChoices;

View File

@@ -57,7 +57,12 @@ class DryRemovalRuntimeEnvironment extends RunTimeEnvironment
$aModulesToLoad = $this->GetModulesToLoad($sSourceEnv, $aSearchDirs);
ModuleDiscovery::GetModulesOrderedByDependencies($aSearchDirs, true, $aModulesToLoad);
try {
ModuleDiscovery::GetModulesOrderedByDependencies($aSearchDirs, true, $aModulesToLoad);
} catch (\MissingDependencyException $e) {
\IssueLog::Error("Cannot prepare setup due to dependency issue", null, ['msg' => $e->getMessage(), 'modules_to_load' => $aModulesToLoad]);
throw $e;
}
}
private function DeclareExtensionAsRemoved(array $aExtensionCodes): void