mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°8760 - fix installation choices db query - read code instead of title + add log
This commit is contained in:
@@ -577,7 +577,7 @@ class iTopExtensionsMap
|
|||||||
|
|
||||||
$aChoices = [];
|
$aChoices = [];
|
||||||
foreach ($aDBInfo as $aExtensionInfo) {
|
foreach ($aDBInfo as $aExtensionInfo) {
|
||||||
$aChoices[] = $aExtensionInfo['label'];
|
$aChoices[] = $aExtensionInfo['code'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $aChoices;
|
return $aChoices;
|
||||||
|
|||||||
@@ -57,7 +57,12 @@ class DryRemovalRuntimeEnvironment extends RunTimeEnvironment
|
|||||||
|
|
||||||
$aModulesToLoad = $this->GetModulesToLoad($sSourceEnv, $aSearchDirs);
|
$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
|
private function DeclareExtensionAsRemoved(array $aExtensionCodes): void
|
||||||
|
|||||||
Reference in New Issue
Block a user