From 86bc718782b25dddfafab73941ecaab46db7b496 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 18 Oct 2021 12:43:40 +0200 Subject: [PATCH] Condier unavailable time periods that span into multiple days (#880). --- application/libraries/Availability.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/libraries/Availability.php b/application/libraries/Availability.php index 204a03e2..5ec71507 100644 --- a/application/libraries/Availability.php +++ b/application/libraries/Availability.php @@ -341,7 +341,8 @@ class Availability { { $unavailability_events = $this->CI->appointments_model->get_batch([ 'is_unavailable' => TRUE, - 'DATE(start_datetime)' => $date, + 'DATE(start_datetime) <=' => $date, + 'DATE(end_datetime) >=' => $date, 'id_users_provider' => $provider['id'] ]);