From b87f7aa1b3b885d9c3a05de92e5b32f35e9a8043 Mon Sep 17 00:00:00 2001 From: Jan Chaloupecky Date: Fri, 22 Apr 2022 15:15:42 +0200 Subject: [PATCH] fix providers not visible for secretaries --- assets/js/components/appointments_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/components/appointments_modal.js b/assets/js/components/appointments_modal.js index d83c279a..400a51e6 100755 --- a/assets/js/components/appointments_modal.js +++ b/assets/js/components/appointments_modal.js @@ -360,7 +360,7 @@ App.Components.AppointmentsModal = (function () { if ( vars('role_slug') === App.Layouts.Backend.DB_SLUG_SECRETARY && - vars('secretary_providers').indexOf(provider.id) === -1 + vars('secretary_providers').indexOf(Number(provider.id)) === -1 ) { return; // continue }