* EMailAdmin: folders to notify about were always stored as default for all users, if editied by an admin

This commit is contained in:
Ralf Becker 2014-08-21 15:14:20 +00:00
parent 8399373f35
commit 4ced9e1e22

View File

@ -1054,7 +1054,9 @@ class emailadmin_account implements ArrayAccess
} }
// store notification folders // store notification folders
emailadmin_notifications::write($data['acc_id'], (int)$data['notify_account_id'], (array)$data['notify_folders']); emailadmin_notifications::write($data['acc_id'], $data['notify_save_default'] ? 0 :
($data['called_for'] ? $data['called_for'] : $GLOBALS['egw_info']['user']['account_id']),
(array)$data['notify_folders']);
// store account-information of managed mail server // store account-information of managed mail server
if ($user > 0 && $data['acc_smtp_type'] && $data['acc_smtp_type'] != 'emailadmin_smtp') if ($user > 0 && $data['acc_smtp_type'] && $data['acc_smtp_type'] != 'emailadmin_smtp')