mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 00:32:16 +02:00
N°8760 - raise module dependency errors in all setups ecept wizard/unattended
This commit is contained in:
@@ -477,7 +477,7 @@ class RunTimeEnvironment
|
|||||||
}
|
}
|
||||||
|
|
||||||
$aModulesToLoad = $this->GetModulesToLoad($this->sFinalEnv, $aDirsToCompile);
|
$aModulesToLoad = $this->GetModulesToLoad($this->sFinalEnv, $aDirsToCompile);
|
||||||
$aAvailableModules = $this->AnalyzeInstallation($oSourceConfig, $aDirsToCompile, false, $aModulesToLoad);
|
$aAvailableModules = $this->AnalyzeInstallation($oSourceConfig, $aDirsToCompile, true, $aModulesToLoad);
|
||||||
|
|
||||||
// Do load the required modules
|
// Do load the required modules
|
||||||
//
|
//
|
||||||
@@ -1634,6 +1634,7 @@ class RunTimeEnvironment
|
|||||||
protected function GetModulesToLoad(string $sSourceEnv, array $aSearchDirs): ?array
|
protected function GetModulesToLoad(string $sSourceEnv, array $aSearchDirs): ?array
|
||||||
{
|
{
|
||||||
if (is_null($this->GetExtensionMap())) {
|
if (is_null($this->GetExtensionMap())) {
|
||||||
|
SetupLog::Error(__METHOD__ . '================' . __LINE__);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1641,6 +1642,7 @@ class RunTimeEnvironment
|
|||||||
|
|
||||||
$aChoices = $this->GetExtensionMap()->GetChoicesFromDatabase($oSourceConfig);
|
$aChoices = $this->GetExtensionMap()->GetChoicesFromDatabase($oSourceConfig);
|
||||||
if (false === $aChoices) {
|
if (false === $aChoices) {
|
||||||
|
SetupLog::Error(__METHOD__ . '================' . __LINE__);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$sSourceDir = $oSourceConfig->Get('source_dir');
|
$sSourceDir = $oSourceConfig->Get('source_dir');
|
||||||
@@ -1666,6 +1668,7 @@ class RunTimeEnvironment
|
|||||||
$aModulesToLoad[] = $sModuleName;
|
$aModulesToLoad[] = $sModuleName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetupLog::Error(__METHOD__ . '================' . __LINE__, null, [$aChoices, $aModuleIdsToLoad]);
|
||||||
return $aModulesToLoad;
|
return $aModulesToLoad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user