diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 3ed33ef5235..5bf2f45d31c 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -4144,7 +4144,7 @@ class Product extends CommonObject $parameters=array('id'=>$this->id); // Note that $action and $object may have been modified by some hooks $reshook=$hookmanager->executeHooks('loadvirtualstock', $parameters, $this, $action); - if ($reshook > 0) $this->stock_theorique+= $hookmanager->resPrint; + if ($reshook > 0) $this->stock_theorique = $hookmanager->resArray['stock_theorique']; }