From 976f3bc06b3964e753878a28f68003221bb13c91 Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Fri, 31 Dec 2021 15:17:02 +0530 Subject: [PATCH] Resolved: No validation for the fields in 'hotel_features' API for add and update. Validations added in the htl_features table definition --- modules/hotelreservationsystem/classes/HotelFeatures.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelFeatures.php b/modules/hotelreservationsystem/classes/HotelFeatures.php index 539dac2ae..13d53b76a 100644 --- a/modules/hotelreservationsystem/classes/HotelFeatures.php +++ b/modules/hotelreservationsystem/classes/HotelFeatures.php @@ -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), ) );