* InfoLog: set replyTo for async notification to owner of InfoLog, otherwise the user causing the change

This commit is contained in:
ralf 2022-03-28 19:38:15 +03:00
parent b990c00207
commit e4cf9d8715

View File

@ -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'])