From d6a25f78cfa2bb01e982e7490145649320e053f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 1 May 2008 22:22:15 +0000 Subject: [PATCH] Fix: Warning when deleting order line --- htdocs/commande/commande.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index aa016b4774f..7f282eeba1e 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -1186,6 +1186,8 @@ class Commande extends CommonObject */ function delete_line($idligne) { + global $user; + if ($this->statut == 0) { $this->db->begin(); @@ -1210,7 +1212,7 @@ class Commande extends CommonObject $ligne = new CommandeLigne($this->db); $ligne->id = $idligne; $ligne->fk_commande = $this->id; // On en a besoin dans les triggers - $result=$ligne->delete(); + $result=$ligne->delete($user); if ($result > 0) {