Merge pull request #14412 from egils-consulting/patch-3
Update api_products.class.php
This commit is contained in:
commit
4468c5cfb0
@ -286,6 +286,9 @@ class Products extends DolibarrApi
|
||||
|
||||
foreach ($request_data as $field => $value) {
|
||||
if ($field == 'id') { continue;
|
||||
}
|
||||
if ($field == 'stock_reel') {
|
||||
throw new RestException(400, 'Stock reel cannot be updated here. Use the /stockmovements endpoint instead');
|
||||
}
|
||||
$this->product->$field = $value;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user