Strip providers script vars' keys to fix 'find() undefined' JS error
This commit is contained in:
parent
e2fe600b94
commit
ad6bf65667
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class Calendar extends EA_Controller {
|
||||||
'timezones' => $this->timezones->to_array(),
|
'timezones' => $this->timezones->to_array(),
|
||||||
'privileges' => $privileges,
|
'privileges' => $privileges,
|
||||||
'calendar_view' => $calendar_view,
|
'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,
|
'available_services' => $available_services,
|
||||||
'secretary_providers' => $secretary_providers,
|
'secretary_providers' => $secretary_providers,
|
||||||
'edit_appointment' => $edit_appointment,
|
'edit_appointment' => $edit_appointment,
|
||||||
|
|
Loading…
Reference in a new issue