From 80937f31609afaba3b1942d348c7361746a96dad Mon Sep 17 00:00:00 2001 From: John BOTELLA <68917336+thersane-john@users.noreply.github.com> Date: Mon, 31 Mar 2025 21:58:54 +0200 Subject: [PATCH] Fix transfert stock float (#33669) --- htdocs/product/stock/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';