Default value for the working plan exceptions in table view

This commit is contained in:
Alex Tselegidis 2020-12-09 15:59:46 +02:00
parent bde91f5a14
commit b45fd3acd6

View file

@ -847,7 +847,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
function createNonWorkingHours($calendar, provider) {
var workingPlan = JSON.parse(provider.settings.working_plan);
var workingPlanExceptions = JSON.parse(provider.settings.working_plan_exceptions);
var workingPlanExceptions = JSON.parse(provider.settings.working_plan_exceptions) || {};
var view = $calendar.fullCalendar('getView');
var start = view.start.clone();
var end = view.end.clone();