From 6aaee4e11bb36a07d88c5efaada7a5566d4560ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 12 Nov 2024 15:16:28 +0100 Subject: [PATCH] test --- htdocs/fourn/commande/card.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index d53802c4b428b..ffbc4aa99a58d 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1135,9 +1135,9 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $usercandelete) { // Delete existing dispatched lines $errOnDelete = 0; - + $db->begin(); - + if ($stockDelete) { $dispatchedLines = $object->getDispachedLines(); if (!empty($dispatchedLines)) { @@ -1176,7 +1176,7 @@ } } } - + if (empty($errOnDelete)) { $result = $object->delete($user); if ($result > 0) {