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:
Thomas Casteleyn
2022-12-14 10:29:58 +01:00
committed by GitHub
parent e38951ebae
commit fe997d1254

View File

@@ -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);
}
}