Lync Module fixes

This commit is contained in:
dev_amdtel 2013-12-17 00:18:50 +04:00
parent 6936594f9c
commit 59737303bc

View file

@ -97,7 +97,7 @@ namespace WebsitePanel.Portal.UserControls
}
// bind controls
int max = quotaAllowed == -1 ? listExternalAddresses.Items.Count : quotaAllowed;
int max = quotaAllowed == -1 ? listExternalAddresses.Items.Count : Math.Min(quotaAllowed, listExternalAddresses.Items.Count);
txtExternalAddressesNumber.Text = max.ToString();
litMaxAddresses.Text = String.Format(GetLocalizedString("litMaxAddresses.Text"), max);