Fix save-to-filemanager action not working when it's an opened popup mail from another app (e.g. filemanager)

This commit is contained in:
Hadi Nategh 2019-08-01 12:30:55 +02:00
parent 1768ee998e
commit 88164b6dac

View File

@ -3036,6 +3036,10 @@ app.classes.mail = AppJS.extend(
var _id = _elems[i].id; var _id = _elems[i].id;
var dataElem = egw.dataGetUIDdata(_id); var dataElem = egw.dataGetUIDdata(_id);
var subject = dataElem? dataElem.data.subject: _elems[i].subject; var subject = dataElem? dataElem.data.subject: _elems[i].subject;
if (this.egw.is_popup())
{
subject = this.et2.getArrayMgr('content').getEntry('mail_displaysubject');
}
// Replace these now, they really cause problems later // Replace these now, they really cause problems later
var filename = subject.replace(/[\f\n\t\v\/\\\?]/g,"_")|| 'unknown'; var filename = subject.replace(/[\f\n\t\v\/\\\?]/g,"_")|| 'unknown';
ids.push(_id); ids.push(_id);