diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index cc824bce3c6..7a77f308509 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -591,7 +591,7 @@ class Product extends CommonObject { if (empty($this->oldcopy)) { - $org=new self($db); + $org=new self($this->db); $org->fetch($this->id); $this->oldcopy=$org; }