From 5f1796b39aca86d0261df8312b45d42d5bfeec0c Mon Sep 17 00:00:00 2001 From: Delthair <41671350+Delthair@users.noreply.github.com> Date: Fri, 22 Mar 2024 18:49:12 +0100 Subject: [PATCH] FIX #29029 Impossible to delete an order line Impossible to delete a line because the code lead to add an error if the request is valid therefore leading to a rollback of the request --- htdocs/commande/class/commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 410713d7c12..9a3319c8138 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -4445,7 +4445,7 @@ class OrderLine extends CommonOrderLine dol_syslog("OrderLine::delete", LOG_DEBUG); $resql = $this->db->query($sql); - if ($resql) { + if (!$resql) { $this->error = $this->db->lasterror(); $error++; }