Consider INBOX as default folder for edit ACL.

-Fix selecting edit acl from context menu on mail profile name (root folder) gives an javascript error
This commit is contained in:
Hadi Nategh 2014-08-28 12:31:03 +00:00
parent 0a952f54a5
commit 92919a242a

View File

@ -3398,7 +3398,7 @@ app.classes.mail = AppJS.extend(
edit_acl: function(_action, _senders)
{
var mailbox = _senders[0].id.split('::');
var folder = mailbox[1], acc_id = mailbox[0];
var folder = mailbox[1] || 'INBOX', acc_id = mailbox[0];
this.egw.open_link('mail.mail_acl.edit&mailbox='+ jQuery.base64Encode(folder)+'&acc_id='+acc_id, '_blank', '640x480');
},