From 1822bc76f27b30e7eb6401486ef970fdb196eeaa Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Thu, 2 May 2024 11:29:12 +0530 Subject: [PATCH] Fixed: The display format for max order date in case admin does not update the max order date for the hotel --- .../controllers/admin/AdminAddHotelController.php | 4 ++-- .../views/templates/admin/add_hotel/helpers/form/form.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php b/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php index 15196c989..4ec3f3dbc 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php @@ -162,9 +162,9 @@ class AdminAddHotelController extends ModuleAdminController $restrictDateInfo = HotelOrderRestrictDate::getDataByHotelId($idHotel); if ($restrictDateInfo) { if ($restrictDateInfo['max_order_date'] == '0000-00-00') { - $restrictDateInfo['max_order_date'] = date('d-m-Y', strtotime('1 year')); + $restrictDateInfo['max_order_date'] = date('Y-m-d', strtotime('1 year')); } else { - $restrictDateInfo['max_order_date'] = date('d-m-Y', strtotime($restrictDateInfo['max_order_date'])); + $restrictDateInfo['max_order_date'] = date('Y-m-d', strtotime($restrictDateInfo['max_order_date'])); } } $smartyVars['order_restrict_date_info'] = $restrictDateInfo; diff --git a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl index 3e44b0e0c..196df0efd 100644 --- a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl @@ -364,7 +364,7 @@
- +