From d47362e483ff44f82d93aa9c69e8d3d16431ccd9 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Mon, 27 May 2024 12:52:09 +0530 Subject: [PATCH] Fixed: The max order date getting saved in the wrong required format --- controllers/admin/AdminOrderPreferencesController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminOrderPreferencesController.php b/controllers/admin/AdminOrderPreferencesController.php index ccfc972ad..cd5329be0 100644 --- a/controllers/admin/AdminOrderPreferencesController.php +++ b/controllers/admin/AdminOrderPreferencesController.php @@ -336,6 +336,8 @@ class AdminOrderPreferencesControllerCore extends AdminController // To prevent this from saving in the configuration table unset($_POST['max_global_booking_date_formatted']); + // To prevent the saving of the wrong + $_POST['MAX_GLOBAL_BOOKING_DATE'] = date('Y-m-d', strtotime(Tools::getValue('MAX_GLOBAL_BOOKING_DATE'))); $maxGlobalBookingDate = Tools::getValue('MAX_GLOBAL_BOOKING_DATE'); $globalPreparationTime = Tools::getValue('GLOBAL_PREPARATION_TIME'); $maxGlobalBookingDateFormatted = date('Y-m-d', strtotime($maxGlobalBookingDate));