FIX product purchase prices
Fix get datas but don't fix cleandata :( @eldy
This commit is contained in:
parent
4207d94f53
commit
cb7342d4c8
@ -796,11 +796,11 @@ class Products extends DolibarrApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$this->productsupplier->fetch($id, $ref);
|
$product_fourn = new ProductFournisseur($this->db);
|
||||||
$this->productsupplier->list_product_fournisseur_price($id, '', '', 0, 0);
|
$product_fourn_list = $product_fourn->list_product_fournisseur_price($this->product->id, '', '', 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->_cleanObjectDatas($this->productsupplier);
|
return $this->_cleanObjectDatas($product_fourn_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user