mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
* InfoLog: set replyTo for async notification to owner of InfoLog, otherwise the user causing the change
This commit is contained in:
parent
b990c00207
commit
e4cf9d8715
@ -327,6 +327,17 @@ class infolog_tracking extends Api\Storage\Tracking
|
||||
unset($old); // not used, but required function signature
|
||||
switch($name)
|
||||
{
|
||||
case 'reply_to': // for async notification use owner of infolog, otherwise the user causing the change
|
||||
if (($reply_to = Api\Accounts::getInstance()->id2name(!empty($GLOBALS['egw_info']['flags']['async-service']) ?
|
||||
$data['info_owner'] : $GLOBALS['egw_info']['user']['account_id'], 'account_email')))
|
||||
{
|
||||
$config = $reply_to;
|
||||
}
|
||||
break;
|
||||
case 'sender':
|
||||
// Use infolog owner as the notification sender
|
||||
$config = $data['info_owner'];
|
||||
break;
|
||||
case 'copy': // include the info_cc addresses
|
||||
if ($data['info_access'] == 'private') return array(); // no copies for private entries
|
||||
if ($data['info_cc'])
|
||||
|
Loading…
Reference in New Issue
Block a user