From 7e68d8df1b7ad8a8ed4e2ea9326820e4431db376 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 14 Oct 2018 16:47:30 +0200 Subject: [PATCH] Update product.class.php --- htdocs/product/class/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; }