Skip to content
Snippets Groups Projects
Commit 32090eee authored by Charles Benke's avatar Charles Benke
Browse files

Update product.class.php

init the stock_warehouse Array during fetch instead we omit to load the stock (wrong value stay inside)
parent 1b02cdd3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment