mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 18:12:26 +03:00
Fixed problem with appointment update and the check_datetime_availability method.
This commit is contained in:
parent
ba5ef4d326
commit
5896588abc
1 changed files with 1 additions and 2 deletions
|
@ -510,8 +510,7 @@ class Appointments extends CI_Controller {
|
||||||
|
|
||||||
$service_duration = $this->services_model->get_value('duration', $appointment['id_services']);
|
$service_duration = $this->services_model->get_value('duration', $appointment['id_services']);
|
||||||
|
|
||||||
$exclude_appointments = (isset($appointment['appointment_id']))
|
$exclude_appointments = (isset($appointment['id'])) ? array($appointment['id']) : array();
|
||||||
? array($appointment['appointment_id']) : array();
|
|
||||||
|
|
||||||
$available_periods = $this->get_provider_available_time_periods(
|
$available_periods = $this->get_provider_available_time_periods(
|
||||||
$appointment['id_users_provider'], date('Y-m-d', strtotime($appointment['start_datetime'])),
|
$appointment['id_users_provider'], date('Y-m-d', strtotime($appointment['start_datetime'])),
|
||||||
|
|
Loading…
Reference in a new issue