mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Make sure that rescheduling from the public page will not throw an error due to the same appointment existing in the calendar
This commit is contained in:
parent
ec3ec699a9
commit
c407bf50a7
1 changed files with 1 additions and 0 deletions
|
@ -385,6 +385,7 @@ class Booking extends EA_Controller
|
||||||
$customer['id'] = $this->customers_model->find_record_id($customer);
|
$customer['id'] = $this->customers_model->find_record_id($customer);
|
||||||
|
|
||||||
$existing_appointments = $this->appointments_model->get([
|
$existing_appointments = $this->appointments_model->get([
|
||||||
|
'id !=' => $manage_mode ? $appointment['id'] : null,
|
||||||
'id_users_customer' => $customer['id'],
|
'id_users_customer' => $customer['id'],
|
||||||
'start_datetime <=' => $appointment['start_datetime'],
|
'start_datetime <=' => $appointment['start_datetime'],
|
||||||
'end_datetime >=' => $appointment['end_datetime'],
|
'end_datetime >=' => $appointment['end_datetime'],
|
||||||
|
|
Loading…
Reference in a new issue