Fixed problem with appointment update and the check_datetime_availability method.

This commit is contained in:
Alex Tselegidis 2015-11-28 12:00:01 +01:00
parent ba5ef4d326
commit 5896588abc

View file

@ -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'])),