Fix copy/move of mail to another mail account

This commit is contained in:
Hadi Nategh 2014-10-14 08:01:52 +00:00
parent dd8f1090f5
commit ea47198d35

View File

@ -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();