From cb6a7e5127d97669ff8d8148320e25d8770690f3 Mon Sep 17 00:00:00 2001 From: Alexander Trofimov Date: Sun, 1 Feb 2015 00:34:00 +0700 Subject: [PATCH] additional fix for wsp-10300 Default Global Mailbox Plan --- .../SettingsExchangeMailboxPlansPolicy.ascx.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx.cs index 67fdd3fe..21988009 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx.cs @@ -109,12 +109,9 @@ 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; }