Remove unnecessary "find" method parameter
This commit is contained in:
parent
1eada1b0e2
commit
054c4fe36d
1 changed files with 12 additions and 12 deletions
|
@ -261,9 +261,9 @@ class Calendar extends EA_Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$appointment = $this->appointments_model->find($appointment['id']);
|
$appointment = $this->appointments_model->find($appointment['id']);
|
||||||
$provider = $this->providers_model->find($appointment['id_users_provider'], true);
|
$provider = $this->providers_model->find($appointment['id_users_provider']);
|
||||||
$customer = $this->customers_model->find($appointment['id_users_customer'], true);
|
$customer = $this->customers_model->find($appointment['id_users_customer']);
|
||||||
$service = $this->services_model->find($appointment['id_services'], true);
|
$service = $this->services_model->find($appointment['id_services']);
|
||||||
|
|
||||||
$settings = [
|
$settings = [
|
||||||
'company_name' => setting('company_name'),
|
'company_name' => setting('company_name'),
|
||||||
|
@ -337,9 +337,9 @@ class Calendar extends EA_Controller
|
||||||
|
|
||||||
$this->check_event_permissions((int) $appointment['id_users_provider']);
|
$this->check_event_permissions((int) $appointment['id_users_provider']);
|
||||||
|
|
||||||
$provider = $this->providers_model->find($appointment['id_users_provider'], true);
|
$provider = $this->providers_model->find($appointment['id_users_provider']);
|
||||||
$customer = $this->customers_model->find($appointment['id_users_customer'], true);
|
$customer = $this->customers_model->find($appointment['id_users_customer']);
|
||||||
$service = $this->services_model->find($appointment['id_services'], true);
|
$service = $this->services_model->find($appointment['id_services']);
|
||||||
|
|
||||||
$settings = [
|
$settings = [
|
||||||
'company_name' => setting('company_name'),
|
'company_name' => setting('company_name'),
|
||||||
|
@ -531,9 +531,9 @@ class Calendar extends EA_Controller
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($response['appointments'] as &$appointment) {
|
foreach ($response['appointments'] as &$appointment) {
|
||||||
$appointment['provider'] = $this->providers_model->find($appointment['id_users_provider'], true);
|
$appointment['provider'] = $this->providers_model->find($appointment['id_users_provider']);
|
||||||
$appointment['service'] = $this->services_model->find($appointment['id_services'], true);
|
$appointment['service'] = $this->services_model->find($appointment['id_services']);
|
||||||
$appointment['customer'] = $this->customers_model->find($appointment['id_users_customer'], true);
|
$appointment['customer'] = $this->customers_model->find($appointment['id_users_customer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($appointment);
|
unset($appointment);
|
||||||
|
@ -659,9 +659,9 @@ class Calendar extends EA_Controller
|
||||||
$response['appointments'] = $this->appointments_model->get($where_clause);
|
$response['appointments'] = $this->appointments_model->get($where_clause);
|
||||||
|
|
||||||
foreach ($response['appointments'] as &$appointment) {
|
foreach ($response['appointments'] as &$appointment) {
|
||||||
$appointment['provider'] = $this->providers_model->find($appointment['id_users_provider'], true);
|
$appointment['provider'] = $this->providers_model->find($appointment['id_users_provider']);
|
||||||
$appointment['service'] = $this->services_model->find($appointment['id_services'], true);
|
$appointment['service'] = $this->services_model->find($appointment['id_services']);
|
||||||
$appointment['customer'] = $this->customers_model->find($appointment['id_users_customer'], true);
|
$appointment['customer'] = $this->customers_model->find($appointment['id_users_customer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get unavailability periods (only for provider).
|
// Get unavailability periods (only for provider).
|
||||||
|
|
Loading…
Reference in a new issue