Update product.class.php
init the stock_warehouse Array during fetch instead we omit to load the stock (wrong value stay inside)
This commit is contained in:
parent
1b02cdd352
commit
32090eeeb5
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user