From b841864bc97ad5db8fbf66be683d0a2209da1264 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 23 Feb 2022 11:42:30 +0100 Subject: [PATCH] The table calendar view breaks for secretaries and providers due to appointment and unavailability removals (#1211) --- application/controllers/Backend_api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/controllers/Backend_api.php b/application/controllers/Backend_api.php index c2f4b793..c10f4aab 100755 --- a/application/controllers/Backend_api.php +++ b/application/controllers/Backend_api.php @@ -134,6 +134,10 @@ class Backend_api extends EA_Controller { } } + $response['appointments'] = array_values($response['appointments']); + + $response['unavailability_events'] = array_values($response['unavailability_events']); + $this->output->set_output(json_encode($response)); } catch (Exception $exception)