Add default working plan exceptions value

This commit is contained in:
Alex Tselegidis 2024-03-08 09:36:44 +01:00
parent 1d4ef06fdb
commit 105e522973

View file

@ -136,6 +136,10 @@ class Providers_api_v1 extends EA_Controller
$provider['settings']['working_plan'] = setting('company_working_plan');
}
if (!array_key_exists('working_plan_exceptions', $provider['settings'])) {
$provider['settings']['working_plan_exceptions'] = '{}';
}
$provider_id = $this->providers_model->save($provider);
$created_provider = $this->providers_model->find($provider_id);