Merge pull request #1330 from eerojaaskelainen/BookingRescheduleManageModeFix

Booking reschedule: Fixed manage mode getter
This commit is contained in:
Alex Tselegidis 2023-01-14 10:02:37 +01:00 committed by GitHub
commit f68e475e27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -422,7 +422,7 @@ class Booking extends EA_Controller {
$captcha = request('captcha'); $captcha = request('captcha');
$appointment = $post_data['appointment']; $appointment = $post_data['appointment'];
$customer = $post_data['customer']; $customer = $post_data['customer'];
$manage_mode = ! empty($post_data['id']); $manage_mode = isset($post_data['manage_mode']) && $post_data['manage_mode'];
if ( ! array_key_exists('address', $customer)) if ( ! array_key_exists('address', $customer))
{ {