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:30:16 +00:00
parent d9bcab4f58
commit b2d03e62fe

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');
},