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();