mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +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']);
|
$response['appointments'][$index]['provider'] = $this->providers_model->get_row($appointment['id_users_provider']);
|
||||||
$appointment['service'] = $this->services_model->get_row($appointment['id_services']);
|
$response['appointments'][$index]['service'] = $this->services_model->get_row($appointment['id_services']);
|
||||||
$appointment['customer'] = $this->customers_model->get_row($appointment['id_users_customer']);
|
$response['appointments'][$index]['customer'] = $this->customers_model->get_row($appointment['id_users_customer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$user_id = $this->session->userdata('user_id');
|
$user_id = $this->session->userdata('user_id');
|
||||||
|
|
|
@ -71,7 +71,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
var endDate = endDateMoment.toDate();
|
var endDate = endDateMoment.toDate();
|
||||||
|
|
||||||
getCalendarEvents(startDate, endDate)
|
getCalendarEvents(startDate, endDate)
|
||||||
.done(function () {
|
.done(function (response) {
|
||||||
var currentDate = startDate;
|
var currentDate = startDate;
|
||||||
|
|
||||||
while (currentDate <= endDate) {
|
while (currentDate <= endDate) {
|
||||||
|
|
Loading…
Reference in a new issue