* 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 9253e5230a
commit 5f04ec0ad6
2 changed files with 2 additions and 1 deletions

View File

@ -324,6 +324,7 @@ class mail_compose
if ($appendix_data['emails']) if ($appendix_data['emails'])
{ {
try { 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']); $attched_uids = $this->_get_uids_as_attachments($appendix_data['emails']['ids'], $_content['serverID']);
if (is_array($attched_uids)) if (is_array($attched_uids))
{ {

View File

@ -633,7 +633,7 @@ app.classes.mail = AppJS.extend(
for(var j = 1; j < _elems.length; j++) for(var j = 1; j < _elems.length; j++)
settings.id = settings.id + ',' + _elems[j].id; 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 else
{ {