Fix #yogosha5877

This commit is contained in:
Laurent Destailleur 2021-04-24 21:00:26 +02:00
parent 9f03054fc4
commit b2c2c55214

View File

@ -721,6 +721,11 @@ class Products extends DolibarrApi
throw new RestException(404, 'Supplier not found');
}
// Clean data
$ref_fourn = checkVal($ref_fourn, 'alphanohtml');
$desc_fourn = checkVal($desc_fourn, 'restricthtml');
$barcode = checkVal($barcode, 'alphanohtml');
$result = $this->productsupplier->update_buyprice($qty, $buyprice, DolibarrApiAccess::$user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges, $remise_percent, $remise, $newnpr, $delivery_time_days, $supplier_reputation, $localtaxes_array, $newdefaultvatcode, $multicurrency_buyprice, $multicurrency_price_base_type, $multicurrency_tx, $multicurrency_code, $desc_fourn, $barcode, $fk_barcode_type);
if ($result <= 0) {