From b881dca9940eb690166b3b8ebc9b0ce846e8cfdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:53:12 +0100 Subject: [PATCH 1/2] php V8 warning --- htdocs/commande/card.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 0209622bd21..b3a2495fd1b 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -166,6 +166,8 @@ if (empty($reshook)) { } } + $selectedLines = ""; + if ($cancel) { if (!empty($backtopageforcancel)) { header("Location: ".$backtopageforcancel); From 47a633cf2e71ba1708ace70f2fe2a11aa5e65184 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 Dec 2023 19:28:28 +0100 Subject: [PATCH 2/2] Update card.php --- htdocs/commande/card.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index b3a2495fd1b..a6384f4969a 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -166,7 +166,7 @@ if (empty($reshook)) { } } - $selectedLines = ""; + $selectedLines = GETPOST('toselect', 'array'); if ($cancel) { if (!empty($backtopageforcancel)) { @@ -267,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');