From c5afc67c73eb55cb1458a39b5bbcf4b5a5218449 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Sat, 26 Nov 2022 12:49:05 +0530 Subject: [PATCH 1/2] Remove character limit of 128 for hotel fields 'map_formated_address' and 'map_input_text' --- .../hotelreservationsystem/classes/HotelBranchInformation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelBranchInformation.php b/modules/hotelreservationsystem/classes/HotelBranchInformation.php index 82d061d58..6209332fe 100644 --- a/modules/hotelreservationsystem/classes/HotelBranchInformation.php +++ b/modules/hotelreservationsystem/classes/HotelBranchInformation.php @@ -51,8 +51,8 @@ class HotelBranchInformation extends ObjectModel 'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'latitude' => array('type' => self::TYPE_FLOAT), 'longitude' => array('type' => self::TYPE_FLOAT), - 'map_formated_address' => array('type' => self::TYPE_HTML, 'size' => 128), - 'map_input_text' => array('type' => self::TYPE_STRING, 'size' => 128), + 'map_formated_address' => array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml'), + 'map_input_text' => array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml'), 'active_refund' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), From d53e2eac2857f2a53ef78e78fec71f7460291906 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 30 Nov 2022 12:03:20 +0530 Subject: [PATCH 2/2] Change type and validation for 'map_input_text' --- .../hotelreservationsystem/classes/HotelBranchInformation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hotelreservationsystem/classes/HotelBranchInformation.php b/modules/hotelreservationsystem/classes/HotelBranchInformation.php index 6209332fe..259aa52e6 100644 --- a/modules/hotelreservationsystem/classes/HotelBranchInformation.php +++ b/modules/hotelreservationsystem/classes/HotelBranchInformation.php @@ -52,7 +52,7 @@ class HotelBranchInformation extends ObjectModel 'latitude' => array('type' => self::TYPE_FLOAT), 'longitude' => array('type' => self::TYPE_FLOAT), 'map_formated_address' => array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml'), - 'map_input_text' => array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml'), + 'map_input_text' => array('type' => self::TYPE_STRING, 'validate' => 'isString'), 'active_refund' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false),