From 5896588abc2e3195dbe5e4129cf460cf360a321b Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 28 Nov 2015 12:00:01 +0100 Subject: [PATCH] Fixed problem with appointment update and the check_datetime_availability method. --- src/application/controllers/appointments.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/application/controllers/appointments.php b/src/application/controllers/appointments.php index fdca4bbf..e70e86e8 100755 --- a/src/application/controllers/appointments.php +++ b/src/application/controllers/appointments.php @@ -510,8 +510,7 @@ class Appointments extends CI_Controller { $service_duration = $this->services_model->get_value('duration', $appointment['id_services']); - $exclude_appointments = (isset($appointment['appointment_id'])) - ? array($appointment['appointment_id']) : array(); + $exclude_appointments = (isset($appointment['id'])) ? array($appointment['id']) : array(); $available_periods = $this->get_provider_available_time_periods( $appointment['id_users_provider'], date('Y-m-d', strtotime($appointment['start_datetime'])),