From 922de8200a30aeeda9f492f01fba1dae8c53715c Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 22 Mar 2018 11:08:49 +0100 Subject: [PATCH] Fix quantity --- adm/tabs/AdminImport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adm/tabs/AdminImport.php b/adm/tabs/AdminImport.php index 0e299298..3d58f7b9 100755 --- a/adm/tabs/AdminImport.php +++ b/adm/tabs/AdminImport.php @@ -1337,7 +1337,7 @@ class AdminImport extends AdminTab } self::array_walk($info, array('AdminImport', 'fillInfo'), $pack); - if (($fieldError = $pack->validateFields(UNFRIENDLY_ERROR, true)) === true && is_int($info['qty'])) + if (($fieldError = $pack->validateFields(UNFRIENDLY_ERROR, true)) === true && is_numeric($info['qty'])) { $res = false; // Is product item in pack