mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Add ID to the allowed appointments fields (this will fix the rescheduling flow)
This commit is contained in:
parent
50ec06b29c
commit
8449d5454c
1 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,7 @@ class Booking extends EA_Controller {
|
||||||
|
|
||||||
foreach ($available_providers as &$available_provider)
|
foreach ($available_providers as &$available_provider)
|
||||||
{
|
{
|
||||||
// Only expose the required provider data.
|
// Only expose the required provider data.
|
||||||
|
|
||||||
$this->providers_model->only($available_provider, [
|
$this->providers_model->only($available_provider, [
|
||||||
'id',
|
'id',
|
||||||
|
@ -170,7 +170,7 @@ class Booking extends EA_Controller {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the appointment can still be rescheduled.
|
// Make sure the appointment can still be rescheduled.
|
||||||
|
|
||||||
$start_datetime = strtotime($results[0]['start_datetime']);
|
$start_datetime = strtotime($results[0]['start_datetime']);
|
||||||
|
|
||||||
|
@ -543,6 +543,7 @@ class Booking extends EA_Controller {
|
||||||
$appointment['status'] = $appointment_status_options[0] ?? NULL;
|
$appointment['status'] = $appointment_status_options[0] ?? NULL;
|
||||||
|
|
||||||
$this->appointments_model->only($appointment, [
|
$this->appointments_model->only($appointment, [
|
||||||
|
'id',
|
||||||
'start_datetime',
|
'start_datetime',
|
||||||
'end_datetime',
|
'end_datetime',
|
||||||
'location',
|
'location',
|
||||||
|
|
Loading…
Reference in a new issue