Fixed: The max order date getting saved in the wrong required format
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user