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