diff --git a/application/models/Providers_model.php b/application/models/Providers_model.php index 0153d37e..2506bf69 100755 --- a/application/models/Providers_model.php +++ b/application/models/Providers_model.php @@ -615,6 +615,8 @@ class Providers_model extends EA_Model ->result_array(); foreach ($providers as &$provider) { + $this->cast($provider); + $provider['settings'] = $this->db->get_where('user_settings', ['id_users' => $provider['id']])->row_array(); unset( diff --git a/assets/js/utils/calendar_table_view.js b/assets/js/utils/calendar_table_view.js index c1c50156..1a8c1132 100755 --- a/assets/js/utils/calendar_table_view.js +++ b/assets/js/utils/calendar_table_view.js @@ -403,7 +403,7 @@ App.Utils.CalendarTableView = (function () { (provider) => vars('role_slug') === App.Layouts.Backend.DB_SLUG_ADMIN || (vars('role_slug') === App.Layouts.Backend.DB_SLUG_SECRETARY && - vars('secretary_providers').indexOf(provider.id) !== -1) || + vars('secretary_providers').indexOf(Number(provider.id)) !== -1) || (vars('role_slug') === App.Layouts.Backend.DB_SLUG_PROVIDER && Number(provider.id) === Number(vars('user_id'))) );