From 0ce01090e6a9729c927be272bd4a8f588076721c Mon Sep 17 00:00:00 2001 From: bouba Date: Mon, 17 Nov 2003 22:07:30 +0000 Subject: [PATCH] =?UTF-8?q?Initialisation=20du=20statut=20=E0=20ouvert=20d?= =?UTF-8?q?ans=20la=20methode=20create?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/stock/entrepot.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/entrepot.class.php b/htdocs/product/stock/entrepot.class.php index 50ab5af1a95..f30eab593ab 100644 --- a/htdocs/product/stock/entrepot.class.php +++ b/htdocs/product/stock/entrepot.class.php @@ -51,11 +51,11 @@ class Entrepot if ($this->db->query($sql) ) { - $id = $this->db->last_insert_id(); - + $id = $this->db->last_insert_id(); if ($id > 0) { $this->id = $id; + $this->statut = 1; if ( $this->update($id, $user) ) { $this->db->query("COMMIT") ;