mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 16:48:42 +02:00
N°2013 Fix setup when doing update to new DB (#351)
During the setup there are some queries done to the DB. Only the config file parameters were used, meaning changing those parameters in the setup form wasn't effective :( This is a regression made in 2.5.0 with N°1260 (MySQL TLS)
This commit is contained in:
@@ -1336,6 +1336,18 @@ class WizStepModulesChoice extends WizardStep
|
||||
if ($sConfigPath !== null)
|
||||
{
|
||||
$oConfig = new Config($sConfigPath);
|
||||
|
||||
$aParamValues = array(
|
||||
'db_server' => $oWizard->GetParameter('db_server', ''),
|
||||
'db_user' => $oWizard->GetParameter('db_user', ''),
|
||||
'db_pwd' => $oWizard->GetParameter('db_pwd', ''),
|
||||
'db_name' => $oWizard->GetParameter('db_name', ''),
|
||||
'db_prefix' => $oWizard->GetParameter('db_prefix', ''),
|
||||
'db_tls_enabled' => $oWizard->GetParameter('db_tls_enabled', false),
|
||||
'db_tls_ca' => $oWizard->GetParameter('db_tls_ca', ''),
|
||||
);
|
||||
$oConfig->UpdateFromParams($aParamValues);
|
||||
|
||||
$this->bChoicesFromDatabase = $this->oExtensionsMap->LoadChoicesFromDatabase($oConfig);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user