Strip providers script vars' keys to fix 'find() undefined' JS error

This commit is contained in:
Eero Jääskeläinen 2022-11-17 12:47:30 +02:00
parent e2fe600b94
commit ad6bf65667
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class Calendar extends EA_Controller {
'timezones' => $this->timezones->to_array(),
'privileges' => $privileges,
'calendar_view' => $calendar_view,
'available_providers' => $available_providers,
'available_providers' => array_values($available_providers), // Strip keys to prevent unintended array-to-object conversion
'available_services' => $available_services,
'secretary_providers' => $secretary_providers,
'edit_appointment' => $edit_appointment,