diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 07bbd4ed74b..6d1821472c0 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -166,6 +166,8 @@ if (empty($reshook)) { } } + $selectedLines = GETPOST('toselect', 'array'); + if ($cancel) { if (!empty($backtopageforcancel)) { header("Location: ".$backtopageforcancel); @@ -265,7 +267,6 @@ if (empty($reshook)) { // Add order $datecommande = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear')); $date_delivery = dol_mktime(GETPOST('liv_hour', 'int'), GETPOST('liv_min', 'int'), 0, GETPOST('liv_month', 'int'), GETPOST('liv_day', 'int'), GETPOST('liv_year', 'int')); - $selectedLines = GETPOST('toselect', 'array'); if ($datecommande == '') { setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentities('Date')), null, 'errors');