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:
Sumit Panwar
2021-12-31 15:17:02 +05:30
parent 4b300f637b
commit 976f3bc06b

View File

@@ -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),
)
);