From ea47198d3578337c975f7a988a92c5641de661ef Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 14 Oct 2014 08:01:52 +0000 Subject: [PATCH] Fix copy/move of mail to another mail account --- mail/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index b8228889c7..da5e56855c 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2864,6 +2864,10 @@ app.classes.mail = AppJS.extend( messages['all'] = _allMessagesChecked; if (messages['all']=='cancel') return false; if (messages['all']) messages['activeFilters'] = this.mail_getActiveFilters(_action); + + // Make sure a default target folder is set in case of drop target is parent 0 (mail account name) + if (!target.match(/::/g)) target += '::INBOX'; + var self = this; egw.json('mail.mail_ui.ajax_copyMessages',[target, messages, 'move'], function(){self.unlock_tree();}) .sendRequest();