From f0c1998e9c51c2d44f50ae4f35b76b49545854d6 Mon Sep 17 00:00:00 2001 From: aFolletete Date: Thu, 26 Apr 2012 12:35:20 +0000 Subject: [PATCH] [-] Classes : fixed bug #PSCFI-5435 - Webservice: cannot set negative combination quantity --- classes/Combination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Combination.php b/classes/Combination.php index 391506ec5..a1f4e288c 100644 --- a/classes/Combination.php +++ b/classes/Combination.php @@ -69,7 +69,7 @@ class CombinationCore extends ObjectModel 'location' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), 'ean13' => array('type' => self::TYPE_STRING, 'validate' => 'isEan13', 'size' => 13), 'upc' => array('type' => self::TYPE_STRING, 'validate' => 'isUpc', 'size' => 12), - 'quantity' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'size' => 10), + 'quantity' => array('type' => self::TYPE_INT, 'validate' => 'isInt', 'size' => 10), 'reference' => array('type' => self::TYPE_STRING, 'size' => 32), 'supplier_reference' => array('type' => self::TYPE_STRING, 'size' => 32),