From eeb0a8445de271f66fa4e1bf518389935493900f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 11 Jan 2022 10:53:32 +0100 Subject: [PATCH] Update the business setting page module according to the new working plan utility changes --- assets/js/pages/business_settings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/pages/business_settings.js b/assets/js/pages/business_settings.js index 4683b54e..c1bcbaf4 100644 --- a/assets/js/pages/business_settings.js +++ b/assets/js/pages/business_settings.js @@ -133,16 +133,16 @@ App.Pages.BusinessSettings = (function () { deserialize(businessSettings); - let workingPlan = {}; + let companyWorkingPlan = {}; App.Vars.business_settings.forEach((generalSetting) => { if (generalSetting.name === 'company_working_plan') { - workingPlan = JSON.parse(generalSetting.value); + companyWorkingPlan = JSON.parse(generalSetting.value); } }); - workingPlanManager = new WorkingPlan(); - workingPlanManager.setup(workingPlan); + workingPlanManager = new App.Utils.WorkingPlan(); + workingPlanManager.setup(companyWorkingPlan); workingPlanManager.timepickers(false); workingPlanManager.bindEventHandlers();