mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
Retrofit from trunk
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 [from revision 5252] SVN:2.4[5253]
This commit is contained in:
@@ -1491,7 +1491,12 @@ EOF
|
|||||||
$aScores[$sChoiceId][$sModuleId] = true;
|
$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
|
// All the modules are installed, this choice is selected
|
||||||
$aDefaults[$sChoiceId] = $sChoiceId;
|
$aDefaults[$sChoiceId] = $sChoiceId;
|
||||||
|
|||||||
Reference in New Issue
Block a user