From 6fab7bfc91a84b937a23ec1b00db5c5e0e07b0f8 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 20 Jun 2018 13:32:47 -0600 Subject: [PATCH] Calendar - reset meeting request to send using TO, email all participants uses BCC --- calendar/inc/class.calendar_uiforms.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index ab0c136386..603e64a49e 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1392,7 +1392,6 @@ class calendar_uiforms extends calendar_ui $vars = array( 'menuaction' => 'mail.mail_compose.compose', 'mimeType' => $GLOBALS['egw_info']['user']['preferences']['mail']['composeOptions'] != 'text' ? 'html' : 'plain', - 'preset[bcc]' => $to, 'preset[subject]' => $event['title'], 'preset[body]' => $body, 'preset[name]' => 'event.ics', @@ -1400,6 +1399,7 @@ class calendar_uiforms extends calendar_ui 'preset[type]' => 'text/calendar'.($asrequest?'; method=REQUEST':''), 'preset[size]' => filesize($ics_file), ); + $vars[$asrequest?'preset[to]': 'preset[bcc]'] = $to; if ($asrequest) $vars['preset[msg]'] = lang('You attempt to mail a meetingrequest to the recipients above. Depending on the client this mail is opened with, the recipient may or may not see the mailbody below, but only see the meeting request attached.'); $response = Api\Json\Response::get(); $response->call('app.calendar.custom_mail', $vars);