mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Include the unavailabilities to the "all" display in the calendar
This commit is contained in:
parent
d8845eca23
commit
a8ac22fe00
1 changed files with 3 additions and 2 deletions
|
@ -620,9 +620,10 @@ class Calendar extends EA_Controller
|
||||||
|
|
||||||
$record_id = request('record_id');
|
$record_id = request('record_id');
|
||||||
|
|
||||||
$filter_type = request('filter_type');
|
|
||||||
$is_all = request('record_id') === FILTER_TYPE_ALL;
|
$is_all = request('record_id') === FILTER_TYPE_ALL;
|
||||||
|
|
||||||
|
$filter_type = request('filter_type');
|
||||||
|
|
||||||
if (!$filter_type && !$is_all) {
|
if (!$filter_type && !$is_all) {
|
||||||
json_response([
|
json_response([
|
||||||
'appointments' => [],
|
'appointments' => [],
|
||||||
|
@ -682,7 +683,7 @@ class Calendar extends EA_Controller
|
||||||
// Get unavailability periods (only for provider).
|
// Get unavailability periods (only for provider).
|
||||||
$response['unavailabilities'] = [];
|
$response['unavailabilities'] = [];
|
||||||
|
|
||||||
if ($filter_type == FILTER_TYPE_PROVIDER) {
|
if ($filter_type == FILTER_TYPE_PROVIDER || $is_all) {
|
||||||
$where_clause =
|
$where_clause =
|
||||||
$where_id .
|
$where_id .
|
||||||
' = ' .
|
' = ' .
|
||||||
|
|
Loading…
Reference in a new issue