diff --git a/src/assets/js/backend_calendar_appointments_modal.js b/src/assets/js/backend_calendar_appointments_modal.js index 68b818aa..3113a221 100755 --- a/src/assets/js/backend_calendar_appointments_modal.js +++ b/src/assets/js/backend_calendar_appointments_modal.js @@ -318,7 +318,10 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa }); }); }); - + // If the appointment is opened from a link it triggers the previous function to fill the form + if (window.location.href.indexOf("backend/index/") > -1) { + $('#select-service').change(); + } /** * Event: Enter New Customer Button "Click" */