mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
White list the working plan and working plan exceptions when saving a provider record
This commit is contained in:
parent
5827a36d7a
commit
963413eb88
1 changed files with 16 additions and 5 deletions
|
@ -60,12 +60,12 @@ class Providers extends EA_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
$role_slug = session('role_slug');
|
$role_slug = session('role_slug');
|
||||||
|
|
||||||
$services = $this->services_model->get();
|
$services = $this->services_model->get();
|
||||||
|
|
||||||
foreach($services as &$service)
|
foreach ($services as &$service)
|
||||||
{
|
{
|
||||||
$this->services_model->only($service, ['id', 'name']);
|
$this->services_model->only($service, ['id', 'name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
script_vars([
|
script_vars([
|
||||||
|
@ -158,6 +158,8 @@ class Providers extends EA_Controller {
|
||||||
$this->providers_model->only($provider['settings'], [
|
$this->providers_model->only($provider['settings'], [
|
||||||
'username',
|
'username',
|
||||||
'password',
|
'password',
|
||||||
|
'working_plan',
|
||||||
|
'working_plan_exceptions',
|
||||||
'notifications',
|
'notifications',
|
||||||
'calendar_view'
|
'calendar_view'
|
||||||
]);
|
]);
|
||||||
|
@ -217,6 +219,15 @@ class Providers extends EA_Controller {
|
||||||
'services',
|
'services',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$this->providers_model->only($provider['settings'], [
|
||||||
|
'username',
|
||||||
|
'password',
|
||||||
|
'working_plan',
|
||||||
|
'working_plan_exceptions',
|
||||||
|
'notifications',
|
||||||
|
'calendar_view'
|
||||||
|
]);
|
||||||
|
|
||||||
$this->providers_model->optional($provider, [
|
$this->providers_model->optional($provider, [
|
||||||
'services' => [],
|
'services' => [],
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue