mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Condier unavailable time periods that span into multiple days (#880).
This commit is contained in:
parent
8d4d063afa
commit
86bc718782
1 changed files with 2 additions and 1 deletions
|
@ -341,7 +341,8 @@ class Availability {
|
||||||
{
|
{
|
||||||
$unavailability_events = $this->CI->appointments_model->get_batch([
|
$unavailability_events = $this->CI->appointments_model->get_batch([
|
||||||
'is_unavailable' => TRUE,
|
'is_unavailable' => TRUE,
|
||||||
'DATE(start_datetime)' => $date,
|
'DATE(start_datetime) <=' => $date,
|
||||||
|
'DATE(end_datetime) >=' => $date,
|
||||||
'id_users_provider' => $provider['id']
|
'id_users_provider' => $provider['id']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue