wsp-10046 implement correct organizational stats for exchange as mailbox stats is not included in organizationcontroller
This commit is contained in:
parent
f0da9d3dec
commit
1629e390f3
1 changed files with 4 additions and 2 deletions
|
@ -1123,8 +1123,10 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
if (!string.IsNullOrEmpty(org.GlobalAddressList))
|
if (!string.IsNullOrEmpty(org.GlobalAddressList))
|
||||||
{
|
{
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue