[*] BO : added a new Validate method "isPercentage"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16285 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ class RiskCore extends ObjectModel
|
||||
'fields' => array(
|
||||
'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isString', 'required' => true, 'size' => 20),
|
||||
'color' => array('type' => self::TYPE_STRING, 'validate' => 'isColor', 'size' => 32),
|
||||
'percent' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt')
|
||||
'percent' => array('type' => self::TYPE_INT, 'validate' => 'isPercentage')
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user