Fix: [ bug #919 ] SQL error in product/stock/product.php
This commit is contained in:
parent
1aa5535741
commit
205ff535a9
1 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ class MouvementStock
|
|||
$error = 0;
|
||||
dol_syslog(get_class($this)."::_create start userid=$user->id, fk_product=$fk_product, warehouse=$entrepot_id, qty=$qty, type=$type, price=$price label=$label");
|
||||
|
||||
// Clean parameters
|
||||
if (empty($price)) $price=0;
|
||||
|
||||
if (empty($fk_product)) return 0;
|
||||
|
||||
$now=(! empty($datem) ? $datem : dol_now());
|
||||
|
|
|
|||
Loading…
Reference in a new issue