diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php
index cc824bce3c6f54c2b93e966e4b85e191832506b3..7a77f308509da2c1d057f4841f88be59d43c0168 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;
             }