mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
Load the appointment and customer data after inserting them for the first time
This commit is contained in:
parent
a76cf2dedb
commit
f2bb4519a5
1 changed files with 3 additions and 2 deletions
|
@ -497,11 +497,12 @@ class Booking extends EA_Controller {
|
||||||
// Save customer language (the language which is used to render the booking page).
|
// Save customer language (the language which is used to render the booking page).
|
||||||
$customer['language'] = session('language') ?? config('language');
|
$customer['language'] = session('language') ?? config('language');
|
||||||
$customer_id = $this->customers_model->save($customer);
|
$customer_id = $this->customers_model->save($customer);
|
||||||
|
$customer = $this->customers_model->find($customer_id);
|
||||||
|
|
||||||
$appointment['id_users_customer'] = $customer_id;
|
$appointment['id_users_customer'] = $customer_id;
|
||||||
$appointment['is_unavailable'] = (int)$appointment['is_unavailable'];
|
$appointment['is_unavailable'] = (int)$appointment['is_unavailable'];
|
||||||
$appointment['id'] = $this->appointments_model->save($appointment);
|
$appointment_id = $this->appointments_model->save($appointment);
|
||||||
$appointment['hash'] = $this->appointments_model->value($appointment['id'], 'hash');
|
$appointment = $this->appointments_model->find($appointment_id);
|
||||||
|
|
||||||
$settings = [
|
$settings = [
|
||||||
'company_name' => setting('company_name'),
|
'company_name' => setting('company_name'),
|
||||||
|
|
Loading…
Reference in a new issue