diff --git a/htdocs/product.class.php b/htdocs/product.class.php index bffee53791b..41474407b83 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -350,6 +350,17 @@ class Product $this->label_url = ''.$this->libelle.''; + if ($this->type == 0) + { + $this->isproduct = 1; + $this->isservice = 0; + } + else + { + $this->isproduct = 0; + $this->isservice = 1; + } + $this->db->free(); $sql = "SELECT reel, fk_entrepot";