Resolved: No validation for the fields in 'hotel_features' API for add and update. Validations added in the htl_features table definition
This commit is contained in:
@@ -32,13 +32,13 @@ class HotelFeatures extends ObjectModel
|
||||
'primary' => 'id',
|
||||
'multilang' => true,
|
||||
'fields' => array(
|
||||
'parent_feature_id' => array('type' => self::TYPE_INT),
|
||||
'parent_feature_id' => array('type' => self::TYPE_INT, 'required' => true),
|
||||
'position' => array('type' => self::TYPE_INT),
|
||||
'active' => array('type' => self::TYPE_INT),
|
||||
'active' => array('type' => self::TYPE_INT, 'required' => true),
|
||||
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false),
|
||||
'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false),
|
||||
//lang fields
|
||||
'name' => array('type' => self::TYPE_STRING, 'lang' => true),
|
||||
'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'required' => true),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user