From b5f6e352918624f5acd69df2e1856f604a892427 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 28 Feb 2014 13:49:10 +0000 Subject: [PATCH] Fix mail common ACL options, not to select "all" if all are selected --- mail/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 17a392ec4f..a29954acb1 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2610,10 +2610,14 @@ app.classes.mail = AppJS.extend( if (rights.split("").sort().toString() == this.aclCommonRights[i].split("").sort().toString()) rights = this.aclCommonRights[i]; } - if (jQuery.inArray(rights,this.aclCommonRights ) == -1) + if (jQuery.inArray(rights,this.aclCommonRights ) == -1 && rights !='lrswipcda') { aclCommonWidget.set_value('custom'); } + else if (rights =='lrswipcda') + { + aclCommonWidget.set_value('akxeilprwts'); + } else { aclCommonWidget.set_value(rights);