mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* Mail: fix broken save to filemanager action
This commit is contained in:
parent
9cbc941c8d
commit
c6adfe64ca
@ -3036,12 +3036,12 @@ app.classes.mail = AppJS.extend(
|
||||
var _id = _elems[i].id;
|
||||
var dataElem = egw.dataGetUIDdata(_id);
|
||||
var subject = dataElem? dataElem.data.subject: _elems[i].subject;
|
||||
if (this.egw.is_popup())
|
||||
if (this.egw.is_popup() && this.et2._inst.name == 'mail.display')
|
||||
{
|
||||
subject = this.et2.getArrayMgr('content').getEntry('mail_displaysubject');
|
||||
}
|
||||
// Replace these now, they really cause problems later
|
||||
var filename = subject.replace(/[\f\n\t\v\/\\\?]/g,"_")|| 'unknown';
|
||||
var filename = subject ? subject.replace(/[\f\n\t\v\/\\\?]/g,"_") : 'unknown';
|
||||
ids.push(_id);
|
||||
names.push(filename+'.eml');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user