mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Less data loaded for providers in book success.
This commit is contained in:
parent
da187c8b02
commit
d6a5373264
1 changed files with 7 additions and 2 deletions
|
@ -284,7 +284,6 @@ class Appointments extends EA_Controller {
|
||||||
unset($appointment['notes']);
|
unset($appointment['notes']);
|
||||||
|
|
||||||
$provider = $this->providers_model->get_row($appointment['id_users_provider']);
|
$provider = $this->providers_model->get_row($appointment['id_users_provider']);
|
||||||
unset($provider['settings'], $provider['notes']);
|
|
||||||
|
|
||||||
$service = $this->services_model->get_row($appointment['id_services']);
|
$service = $this->services_model->get_row($appointment['id_services']);
|
||||||
|
|
||||||
|
@ -295,7 +294,13 @@ class Appointments extends EA_Controller {
|
||||||
|
|
||||||
$view = [
|
$view = [
|
||||||
'appointment_data' => $appointment,
|
'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,
|
'service_data' => $service,
|
||||||
'company_name' => $company_name,
|
'company_name' => $company_name,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue