Fixed: DomainPointer gets not deleted when deleting site

This commit is contained in:
robvde 2012-10-04 01:26:14 +04:00
parent 83886b94e2
commit 734ff40e30

View file

@ -2016,6 +2016,9 @@ namespace WebsitePanel.EnterpriseServer
return BusinessErrorCodes.ERROR_ORGANIZATION_DOMAIN_IS_IN_USE;
}
if (!domain.IsDomainPointer)
{
List<DomainInfo> domains = GetDomainsByZoneId(domain.ZoneItemId);
foreach (DomainInfo d in domains)
{
@ -2025,6 +2028,7 @@ namespace WebsitePanel.EnterpriseServer
return BusinessErrorCodes.ERROR_DOMAIN_POINTS_TO_WEB_SITE;
}
}
}
// delete instant alias