Fixed: DomainPointer gets not deleted when deleting site
This commit is contained in:
parent
83886b94e2
commit
734ff40e30
1 changed files with 9 additions and 5 deletions
|
@ -2016,6 +2016,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
return BusinessErrorCodes.ERROR_ORGANIZATION_DOMAIN_IS_IN_USE;
|
return BusinessErrorCodes.ERROR_ORGANIZATION_DOMAIN_IS_IN_USE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!domain.IsDomainPointer)
|
||||||
|
{
|
||||||
List<DomainInfo> domains = GetDomainsByZoneId(domain.ZoneItemId);
|
List<DomainInfo> domains = GetDomainsByZoneId(domain.ZoneItemId);
|
||||||
foreach (DomainInfo d in domains)
|
foreach (DomainInfo d in domains)
|
||||||
{
|
{
|
||||||
|
@ -2025,6 +2028,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
return BusinessErrorCodes.ERROR_DOMAIN_POINTS_TO_WEB_SITE;
|
return BusinessErrorCodes.ERROR_DOMAIN_POINTS_TO_WEB_SITE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// delete instant alias
|
// delete instant alias
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue