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

@ -108,7 +108,7 @@ class Booking extends EA_Controller {
$timezones = $this->timezones->to_array();
$grouped_timezones = $this->timezones->to_grouped_array();
if (!empty($appointment_hash))
if ( ! empty($appointment_hash))
{
// Load the appointments data and enable the manage mode of the booking page.
@ -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))
{