Set the manage mode to TRUE if the appointment ID is set.
This commit is contained in:
parent
68d7ff1d5f
commit
378c5eaa25
1 changed files with 5 additions and 5 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue