mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 01:12:21 +03:00
Add default working plan exceptions value
This commit is contained in:
parent
1d4ef06fdb
commit
105e522973
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue