From 34587449339fdf4856c3f659255be4d8214c888e Mon Sep 17 00:00:00 2001 From: wolfygit Date: Fri, 17 Jan 2020 12:13:41 +0100 Subject: [PATCH] Fix link appointment form Fix form filling when open an appointment from a link --- src/assets/js/backend_calendar_appointments_modal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" */