mirror of
https://github.com/Combodo/iTop.git
synced 2026-08-21 21:58:20 +02:00
N°9965 - Extensions management and Designer don't have the same view on extension (#1020)
* N°9965 - GetChoicesFromDatabase no more static to mock it * N°9965 - remove empty line
This commit is contained in:
@@ -710,7 +710,7 @@ class iTopExtensionsMap
|
||||
}
|
||||
}
|
||||
|
||||
public static function GetChoicesFromDatabase(Config $oConfig): array|false
|
||||
public function GetChoicesFromDatabase(Config $oConfig): array|false
|
||||
{
|
||||
try {
|
||||
if (CMDBSource::DBName() === null) {
|
||||
@@ -739,7 +739,7 @@ class iTopExtensionsMap
|
||||
*/
|
||||
public function GetSelectedExtensions(Config $oConfig, array $aAddedExtensions, array $aRemovedExtensions): array
|
||||
{
|
||||
$aDbChoices = self::GetChoicesFromDatabase($oConfig);
|
||||
$aDbChoices = $this->GetChoicesFromDatabase($oConfig);
|
||||
foreach ($aDbChoices as $i => $sChoice) {
|
||||
if (in_array($sChoice, $aRemovedExtensions)) {
|
||||
unset($aDbChoices[$i]);
|
||||
|
||||
@@ -74,7 +74,6 @@ class WizStepLandingBeforeAudit extends WizStepModulesChoice
|
||||
|
||||
// Component selection in previous screens
|
||||
if ($this->oWizard->GetParameter('selected_components', '[]') === '[]') {
|
||||
|
||||
$aSelectedComponents = $this->GetSelectedComponents($this->aSteps, $this->oWizard->GetParameter('selected_extensions', '[]'));
|
||||
$this->oWizard->SetParameter('selected_components', json_encode($aSelectedComponents));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user