Skip to content

Commit

Permalink
Do not allow to migrate n+2 before n+1
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 20, 2017
1 parent 4831fb4 commit db35db1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions htdocs/install/check.php
Expand Up @@ -478,8 +478,17 @@
$choice .= '<td class="listofchoices" align="center">';
if ($allowupgrade)
{
// If it's not last updagre script, action = upgrade_tmp, if last action = upgrade
$choice .= '<a class="button runupgrade" href="upgrade.php?action=upgrade'.($count<count($migrationscript)?'_'.$versionto:'').'&amp;selectlang='.$setuplang.'&amp;versionfrom='.$versionfrom.'&amp;versionto='.$versionto.'">'.$langs->trans("Start").'</a>';
$disabled=false;
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:'').'&amp;selectlang='.$setuplang.'&amp;versionfrom='.$versionfrom.'&amp;versionto='.$versionto.'">'.$langs->trans("Start").'</a>';
}
else
{
Expand Down

0 comments on commit db35db1

Please sign in to comment.