From d6a53732648784c83734d6387168e10d999cfaa1 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 21 Nov 2020 22:02:55 +0200 Subject: [PATCH] Less data loaded for providers in book success. --- application/controllers/Appointments.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index b53c9eac..1caba10f 100755 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -284,7 +284,6 @@ class Appointments extends EA_Controller { unset($appointment['notes']); $provider = $this->providers_model->get_row($appointment['id_users_provider']); - unset($provider['settings'], $provider['notes']); $service = $this->services_model->get_row($appointment['id_services']); @@ -295,7 +294,13 @@ class Appointments extends EA_Controller { $view = [ 'appointment_data' => $appointment, - 'provider_data' => $provider, + 'provider_data' => [ + 'id' => $provider['id'], + 'first_name' => $provider['first_name'], + 'last_name' => $provider['last_name'], + 'email' => $provider['email'], + 'timezone' => $provider['timezone'], + ], 'service_data' => $service, 'company_name' => $company_name, ];