From 32090eeeb569d7a9736f4429fca688f5fe5ac985 Mon Sep 17 00:00:00 2001 From: BENKE Charles Date: Sat, 12 Apr 2014 11:41:32 +0200 Subject: [PATCH] Update product.class.php init the stock_warehouse Array during fetch instead we omit to load the stock (wrong value stay inside) --- htdocs/product/class/product.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 818c0479c66..931af52c44d 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1487,6 +1487,8 @@ class Product extends CommonObject // We should not load stock at each fetch. If someone need stock, he must call load_stock after fetch. //$res=$this->load_stock(); //return $res; + // ok we don't load stock but we init the stock_warehouse array + $this->stock_warehouse = Array(); return 1; }