From 492a49f2b3d89b321af861080710dc50329d44d9 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 8 Mar 2024 14:10:37 +0100 Subject: [PATCH] Decode the status prop --- application/models/Appointments_model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/models/Appointments_model.php b/application/models/Appointments_model.php index 1aacf7a6b..69c490240 100644 --- a/application/models/Appointments_model.php +++ b/application/models/Appointments_model.php @@ -583,6 +583,10 @@ public function api_decode(array &$appointment, array $base = null) $decoded_request['location'] = $appointment['location']; } + if (array_key_exists('status', $appointment)) { + $decoded_request['status'] = $appointment['status']; + } + if (array_key_exists('notes', $appointment)) { $decoded_request['notes'] = $appointment['notes']; }