Fix mail common ACL options, not to select "all" if all are selected

This commit is contained in:
Hadi Nategh 2014-02-28 13:49:10 +00:00
parent aa4c108fcf
commit b5f6e35291

View File

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