forked from extern/egroupware
fix problem(s) with display of attachments on forward when either forwarding inline with several attachments to the forwarded message or forwarding multiple messages as attachment
This commit is contained in:
parent
0fd7e7b689
commit
1909ef531d
@ -1967,7 +1967,7 @@ class mail_ui
|
||||
|
||||
$preventRedirect=false;
|
||||
if(isset($_requesteddata['id'])) $rowID = $_requesteddata['id'];
|
||||
if(isset($_requesteddata['part'])) $partID = $_requesteddata['part'];
|
||||
if(isset($_requesteddata['part'])) $partID = $_requesteddata['part']!='null'?$_requesteddata['part']:null;
|
||||
if(isset($_requesteddata['mode'])) $preventRedirect = (($_requesteddata['mode']=='display' || $_requesteddata['mode'] == 'print')?true:false);
|
||||
|
||||
$hA = self::splitRowID($rowID);
|
||||
|
@ -2239,7 +2239,8 @@ app.classes.mail = AppJS.extend(
|
||||
attgrid = this.et2.getArrayMgr("content").getEntry('attachments')[widget.id.replace(/\[name\]/,'')];
|
||||
var mailids = this.et2.getArrayMgr("content").getEntry('processedmail_id');
|
||||
var mailida = mailids.split(',');
|
||||
mailid = mailida[widget.id.replace(/\[name\]/,'')];
|
||||
// either several attachments of one email, or multiple emlfiles
|
||||
mailid = mailida.length==1 ? mailida[0] : mailida[widget.id.replace(/\[name\]/,'')];
|
||||
if (typeof attgrid.uid != 'undefined' && attgrid.uid && mailid.indexOf(attgrid.uid)==-1)
|
||||
{
|
||||
for (var i=0; i<mailida.length; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user