Set the manage mode to TRUE if the appointment ID is set.

This commit is contained in:
Alex Tselegidis 2022-01-18 17:59:10 +01:00
parent 68d7ff1d5f
commit 378c5eaa25

View file

@ -361,9 +361,9 @@ class Booking extends EA_Controller {
{
$post_data = request('post_data');
$captcha = request('captcha');
$manage_mode = filter_var($post_data['manage_mode'], FILTER_VALIDATE_BOOLEAN);
$appointment = $post_data['appointment'];
$customer = $post_data['customer'];
$manage_mode = ! empty($post_data['id']);
if ( ! array_key_exists('address', $customer))
{