From 92919a242ab2ac9392fba173feed39d1c22508ac Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 28 Aug 2014 12:31:03 +0000 Subject: [PATCH] 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 --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 100ab335cc..15c2989f5f 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -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'); },