wsp-10046 implement correct organizational stats for exchange as mailbox stats is not included in organizationcontroller

This commit is contained in:
Virtuworks 2012-11-15 20:25:32 -05:00
parent f0da9d3dec
commit 1629e390f3

View file

@ -1124,7 +1124,9 @@ namespace WebsitePanel.EnterpriseServer
{ {
ExchangeServerController.AddAuthoritativeDomain(itemId, domain.DomainId); ExchangeServerController.AddAuthoritativeDomain(itemId, domain.DomainId);
if (orgStats.AllocatedMailboxes == -1) OrganizationStatistics orgStatsExchange = ExchangeServerController.GetOrganizationStatistics(itemId);
if (orgStatsExchange.AllocatedMailboxes == -1)
{ {
ExchangeAcceptedDomainType newDomainType = ExchangeAcceptedDomainType.InternalRelay; ExchangeAcceptedDomainType newDomainType = ExchangeAcceptedDomainType.InternalRelay;
ChangeOrganizationDomainType(itemId, domain.DomainId, newDomainType); ChangeOrganizationDomainType(itemId, domain.DomainId, newDomainType);