Do not allow to migrate n+2 before n+1
This commit is contained in:
parent
4831fb4dcb
commit
db35db127c
@ -478,8 +478,17 @@ else
|
|||||||
$choice .= '<td class="listofchoices" align="center">';
|
$choice .= '<td class="listofchoices" align="center">';
|
||||||
if ($allowupgrade)
|
if ($allowupgrade)
|
||||||
{
|
{
|
||||||
// If it's not last updagre script, action = upgrade_tmp, if last action = upgrade
|
$disabled=false;
|
||||||
$choice .= '<a class="button runupgrade" href="upgrade.php?action=upgrade'.($count<count($migrationscript)?'_'.$versionto:'').'&selectlang='.$setuplang.'&versionfrom='.$versionfrom.'&versionto='.$versionto.'">'.$langs->trans("Start").'</a>';
|
if ($foundrecommandedchoice == 2)
|
||||||
|
{
|
||||||
|
$disabled=true;
|
||||||
|
}
|
||||||
|
if ($foundrecommandedchoice == 1)
|
||||||
|
{
|
||||||
|
$foundrecommandedchoice = 2;
|
||||||
|
}
|
||||||
|
if ($disabled) $choice .= '<span class="buttonDisable runupgrade"'.($disabled?' disabled="disabled"':'').' href="#">'.$langs->trans("NotAvailable").'</span>';
|
||||||
|
else $choice .= '<a class="button runupgrade"'.($disabled?' disabled="disabled"':'').' href="upgrade.php?action=upgrade'.($count<count($migrationscript)?'_'.$versionto:'').'&selectlang='.$setuplang.'&versionfrom='.$versionfrom.'&versionto='.$versionto.'">'.$langs->trans("Start").'</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user