2
0
forked from Wavyzz/dolibarr

Fix avoid to run import twice by clicking on tab step6

Fix timeout for real import step
This commit is contained in:
Laurent Destailleur
2021-02-05 14:34:04 +01:00
parent 4a2f26415e
commit ac83cea83a
4 changed files with 32 additions and 14 deletions

View File

@@ -43,7 +43,11 @@ function import_prepare_head($param, $maxstep = 0)
$i = 1;
while ($i <= $maxstep)
{
$head[$h][0] = DOL_URL_ROOT.'/imports/import.php?step='.$i.$param;
if ($i < 6) {
$head[$h][0] = DOL_URL_ROOT.'/imports/import.php?step='.$i.$param;
} else {
$head[$h][0] = DOL_URL_ROOT.'/imports/import.php?step=5'.$param; // For step6, link is to step 5
}
$head[$h][1] = $langs->trans("Step")." ".$i;
$head[$h][2] = 'step'.$i;
$h++;