From 729cef3eb4ae6914b2213bedaabfeb55aa0b2b38 Mon Sep 17 00:00:00 2001 From: Florian Henry Date: Wed, 10 Jul 2013 13:32:42 +0200 Subject: [PATCH] Qual: Return id of order creates instead of 1 with method createFromProposal --- 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 d57699b998e..21b55a39413 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -989,7 +989,7 @@ class Commande extends CommonOrder $this->fetch($ret); $this->valid($user); } - return 1; + return $ret; } else return -1; }