This commit is contained in:
Laurent Destailleur 2020-01-18 19:52:59 +01:00
parent 0873f2fec9
commit df26bab65b

View File

@ -1597,9 +1597,17 @@ class Products extends DolibarrApi
if ($includestockdata) { if ($includestockdata) {
$this->product->load_stock(); $this->product->load_stock();
if (is_array($this->product->stock_warehouse)) {
foreach($this->product->stock_warehouse as $keytmp => $valtmp) {
if (is_array($this->product->stock_warehouse[$keytmp]->detail_batch)) {
foreach($this->product->stock_warehouse[$keytmp]->detail_batch as $keytmp2 => $valtmp2) {
unset($this->product->stock_warehouse[$keytmp]->detail_batch[$keytmp2]->db);
}
}
}
}
} }
if ($includesubproducts) { if ($includesubproducts) {
$childsArbo = $this->product->getChildsArbo($id, 1); $childsArbo = $this->product->getChildsArbo($id, 1);