diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index e1b05365cf5..a2cc37d0724 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -344,7 +344,7 @@ if ($action == "transfert_stock" && !$cancel && $usercanupdatestock) { $error++; $action = 'transfert'; } - if (!GETPOSTINT("nbpiece")) { + if (!GETPOST("nbpiece")) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("NumberOfUnit")), null, 'errors'); $error++; $action = 'transfert';