[-] BO : #PSCFV-731 : change type int by string for zipcode_from and zipcode_to
&& check this zip codes && display errors && normalize
This commit is contained in:
@@ -46,8 +46,8 @@ class TaxRuleCore extends ObjectModel
|
||||
'id_tax_rules_group' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
|
||||
'zipcode_from' => array('type' => self::TYPE_INT, 'validate' => 'isPostCode'),
|
||||
'zipcode_to' => array('type' => self::TYPE_INT, 'validate' => 'isPostCode'),
|
||||
'zipcode_from' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode'),
|
||||
'zipcode_to' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode'),
|
||||
'id_tax' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'behavior' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'),
|
||||
'description' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
|
||||
|
||||
Reference in New Issue
Block a user