From c329e4446c28259ee1a6032c76f163733e02c0df Mon Sep 17 00:00:00 2001 From: Zephyriony <142790847+zephyriony@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:52:47 +0200 Subject: [PATCH] Update commande.class.php (#29823) Co-authored-by: Laurent Destailleur --- htdocs/commande/class/commande.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index e0441884162..1ef4754bae4 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1705,6 +1705,7 @@ class Commande extends CommonOrder if ($result > 0) { $this->db->commit(); + $this->lines[] = $this->line; return $this->line->id; } else { $this->db->rollback();