Various legacy webhosting incompatibility issues solved
This commit is contained in:
parent
aa11b4b202
commit
59b7d655a1
6 changed files with 26 additions and 13 deletions
|
@ -1948,6 +1948,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return BusinessErrorCodes.ERROR_ORGANIZATION_DOMAIN_IS_IN_USE;
|
||||
}
|
||||
|
||||
|
||||
List<DomainInfo> domains = GetDomainsByZoneId(domain.ZoneItemId);
|
||||
foreach (DomainInfo d in domains)
|
||||
{
|
||||
|
@ -2269,19 +2270,15 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return webRes;
|
||||
}
|
||||
|
||||
|
||||
List<DomainInfo> domains = GetDomainsByZoneId(domain.ZoneItemId);
|
||||
List<DomainInfo> domains = GetDomainsByZoneId(instantAlias.ZoneItemId);
|
||||
foreach (DomainInfo d in domains)
|
||||
{
|
||||
if (d.WebSiteId > 0)
|
||||
{
|
||||
int webRes = WebServerController.DeleteWebSitePointer(d.WebSiteId, d.DomainId);
|
||||
if (webRes < 0)
|
||||
return webRes;
|
||||
WebServerController.DeleteWebSitePointer(d.WebSiteId, d.DomainId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// remove from mail domain pointers
|
||||
if (instantAlias.MailDomainId > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue