Condier unavailable time periods that span into multiple days (#880).
This commit is contained in:
parent
cbd9e9e41b
commit
cf19ea717c
1 changed files with 2 additions and 1 deletions
|
@ -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']
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue