mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°1224 - The 2.4.x setup keep the selected choices from a 1.3.x version.
* The selection is kept even if the extension has a one more module than the 1.3.x SVN:trunk[5252]
This commit is contained in:
@@ -1497,7 +1497,12 @@ EOF
|
||||
$aScores[$sChoiceId][$sModuleId] = true;
|
||||
}
|
||||
}
|
||||
if (count($aScores[$sChoiceId]) == count($aChoice['modules']))
|
||||
// Used for migration from 1.3.x or before
|
||||
// Accept that the new version can have one new module than the previous version
|
||||
// The option is still selected
|
||||
$iSelected = count($aScores[$sChoiceId]);
|
||||
$iNeeded = count($aChoice['modules']);
|
||||
if (($iSelected > 0) && (($iNeeded - $iSelected) < 2))
|
||||
{
|
||||
// All the modules are installed, this choice is selected
|
||||
$aDefaults[$sChoiceId] = $sChoiceId;
|
||||
|
||||
Reference in New Issue
Block a user