additional fix for wsp-10300 Default Global Mailbox Plan

This commit is contained in:
Alexander Trofimov 2015-02-01 00:34:00 +07:00
parent 50ac084abe
commit cb6a7e5127

View file

@ -109,11 +109,8 @@ namespace WebsitePanel.Portal
gvMailboxPlans.DataBind();
}
//check if organization has only one default domain or less
if (gvMailboxPlans.Rows.Count <= 1)
{
btnSetDefaultMailboxPlan.Enabled = false;
}
// enable set default plan button if organization has two or more plans
btnSetDefaultMailboxPlan.Enabled = gvMailboxPlans.Rows.Count > 1;
btnUpdateMailboxPlan.Enabled = (string.IsNullOrEmpty(txtMailboxPlan.Text)) ? false : true;
}