mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-09 17:42:21 +03:00
Corrected issue with table view and duplicate appointments
This commit is contained in:
parent
8f2487865f
commit
9655feca6c
2 changed files with 5 additions and 5 deletions
|
@ -83,11 +83,11 @@ class Backend_api extends EA_Controller {
|
|||
])
|
||||
];
|
||||
|
||||
foreach ($response['appointments'] as &$appointment)
|
||||
foreach ($response['appointments'] as $index => $appointment)
|
||||
{
|
||||
$appointment['provider'] = $this->providers_model->get_row($appointment['id_users_provider']);
|
||||
$appointment['service'] = $this->services_model->get_row($appointment['id_services']);
|
||||
$appointment['customer'] = $this->customers_model->get_row($appointment['id_users_customer']);
|
||||
$response['appointments'][$index]['provider'] = $this->providers_model->get_row($appointment['id_users_provider']);
|
||||
$response['appointments'][$index]['service'] = $this->services_model->get_row($appointment['id_services']);
|
||||
$response['appointments'][$index]['customer'] = $this->customers_model->get_row($appointment['id_users_customer']);
|
||||
}
|
||||
|
||||
$user_id = $this->session->userdata('user_id');
|
||||
|
|
|
@ -71,7 +71,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
var endDate = endDateMoment.toDate();
|
||||
|
||||
getCalendarEvents(startDate, endDate)
|
||||
.done(function () {
|
||||
.done(function (response) {
|
||||
var currentDate = startDate;
|
||||
|
||||
while (currentDate <= endDate) {
|
||||
|
|
Loading…
Reference in a new issue