From 4ced9e1e22d284e9bb2e03b655f999948dad4c97 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 21 Aug 2014 15:14:20 +0000 Subject: [PATCH] * EMailAdmin: folders to notify about were always stored as default for all users, if editied by an admin --- emailadmin/inc/class.emailadmin_account.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emailadmin/inc/class.emailadmin_account.inc.php b/emailadmin/inc/class.emailadmin_account.inc.php index 3cbfb82014..134a67daaa 100644 --- a/emailadmin/inc/class.emailadmin_account.inc.php +++ b/emailadmin/inc/class.emailadmin_account.inc.php @@ -1054,7 +1054,9 @@ class emailadmin_account implements ArrayAccess } // 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 if ($user > 0 && $data['acc_smtp_type'] && $data['acc_smtp_type'] != 'emailadmin_smtp')