* Mail: fix opening a forwarded mail as attachment into an existing compose dialog fails

This commit is contained in:
Hadi Nategh 2019-02-26 11:58:20 +01:00
parent 7993940857
commit 6d2d55d0f6
2 changed files with 2 additions and 1 deletions

View File

@ -323,6 +323,7 @@ class mail_compose
if ($appendix_data['emails'])
{
try {
if ($appendix_data['emails']['processedmail_id']) $_content['processedmail_id'] .= ','.$appendix_data['emails']['processedmail_id'];
$attched_uids = $this->_get_uids_as_attachments($appendix_data['emails']['ids'], $_content['serverID']);
if (is_array($attched_uids))
{

View File

@ -644,7 +644,7 @@ app.classes.mail = AppJS.extend(
for(var j = 1; j < _elems.length; j++)
settings.id = settings.id + ',' + _elems[j].id;
}
return egw.openWithinWindow("mail", "setCompose", {data:{emails:{ids:settings.id}}}, settings, /mail.mail_compose.compose/);
return egw.openWithinWindow("mail", "setCompose", {data:{emails:{ids:settings.id, processedmail_id:settings.id}}}, settings, /mail.mail_compose.compose/);
}
else
{