FIX #12881
This commit is contained in:
parent
0873f2fec9
commit
df26bab65b
@ -1596,11 +1596,19 @@ 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);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user