Set default notifications setting value for the installation admin.

This commit is contained in:
Alex Tselegidis 2020-09-07 11:45:57 +03:00
parent 185686d194
commit 529e418589

View file

@ -112,6 +112,7 @@ class Installation extends CI_Controller {
$admin['timezone'] = 'UTC'; $admin['timezone'] = 'UTC';
$admin['settings']['username'] = $admin['username']; $admin['settings']['username'] = $admin['username'];
$admin['settings']['password'] = $admin['password']; $admin['settings']['password'] = $admin['password'];
$admin['settings']['notifications'] = true;
$admin['settings']['calendar_view'] = CALENDAR_VIEW_DEFAULT; $admin['settings']['calendar_view'] = CALENDAR_VIEW_DEFAULT;
unset($admin['username'], $admin['password']); unset($admin['username'], $admin['password']);
$admin['id'] = $this->admins_model->add($admin); $admin['id'] = $this->admins_model->add($admin);