From 7278f448e620efbef9ee642c3ce43a09ce222bd8 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 8 Apr 2020 10:30:27 +0200 Subject: [PATCH] Load less information in the booking page. --- application/controllers/Appointments.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index 4372780d..d8d8809d 100755 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -314,8 +314,13 @@ class Appointments extends CI_Controller { $this->load->model('settings_model'); //retrieve the data needed in the view $appointment = $this->appointments_model->get_row($appointment_id); + 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']); + $company_name = $this->settings_model->get_setting('company_name'); //get the exceptions $exceptions = $this->session->flashdata('book_success');