From b8dccc2641f905f5202911605dfb88d3ae7d6242 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 30 Jan 2014 13:37:36 +0000 Subject: [PATCH] fix for forward as attachment --- mail/js/app.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 7480df5d91..e79cbdb17c 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -296,7 +296,7 @@ app.classes.mail = AppJS.extend( } } } - console.log(_action, _elems); + //console.log(_action, _elems); // Extra info passed to egw.open() var settings = { // 'Source' Mail UID @@ -325,8 +325,13 @@ app.classes.mail = AppJS.extend( case 'forwardasattach': if (_elems.length>1||_action.id == 'forwardasattach') { - var url = 'menuaction=mail.mail_compose.compose'; - return this.mail_openComposeWindow(url,_action.id == 'forwardasattach', _elems); + settings.from = 'forward'; + settings.mode = 'forwardasattach'; + if (typeof _elems != 'undefined' && _elems.length>1) + { + for(var j = 1; j < _elems.length; j++) + settings.id = settings.id + ',' + _elems[j].id; + } } else {