Fix quantity

This commit is contained in:
Michael RICOIS 2018-03-22 11:08:49 +01:00
parent 305234f74f
commit 922de8200a

View File

@ -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