From db35db127c0d1df68705737ea63f713ce952e39f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Mar 2017 19:21:26 +0100 Subject: [PATCH] Do not allow to migrate n+2 before n+1 --- htdocs/install/check.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/htdocs/install/check.php b/htdocs/install/check.php index ad687d3c52d..b37837df663 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -478,8 +478,17 @@ else $choice .= ''; if ($allowupgrade) { - // If it's not last updagre script, action = upgrade_tmp, if last action = upgrade - $choice .= ''.$langs->trans("Start").''; + $disabled=false; + if ($foundrecommandedchoice == 2) + { + $disabled=true; + } + if ($foundrecommandedchoice == 1) + { + $foundrecommandedchoice = 2; + } + if ($disabled) $choice .= ''.$langs->trans("NotAvailable").''; + else $choice .= ''.$langs->trans("Start").''; } else {