From 5ae2e18a0b7433d5e1561c228315c3cde3e458cc Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 20 Mar 2023 15:10:37 +0530 Subject: [PATCH] Fix room edit issue --- controllers/admin/AdminOrdersController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 2f2acea90..a3ded107d 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -4213,6 +4213,8 @@ class AdminOrdersControllerCore extends AdminController } $product_informations = Tools::getValue('edit_product'); + $old_date_from = date('Y-m-d', strtotime(trim(Tools::getValue('date_from')))); + $old_date_to = date('Y-m-d', strtotime(trim(Tools::getValue('date_to')))); $new_date_from = trim(date('Y-m-d', strtotime($product_informations['date_from']))); $new_date_to = trim(date('Y-m-d', strtotime($product_informations['date_to']))); $obj_booking_detail = new HotelBookingDetail();