Fixed: Domain DNS records not properly created / missing records during WHMCS

setup.
This commit is contained in:
Christopher York 2012-12-12 11:28:28 -06:00
parent a8ff354d43
commit e6a1120d82

View file

@ -173,7 +173,7 @@ namespace WebsitePanel.EnterpriseServer
domain.PackageId = createdPackageId;
domain.DomainName = domainName;
domain.HostingAllowed = false;
domainId = ServerController.AddDomain(domain, false, createZoneRecord);
domainId = ServerController.AddDomain(domain, false, false);
if (domainId < 0)
{
// rollback wizard
@ -323,6 +323,12 @@ namespace WebsitePanel.EnterpriseServer
return instantAliasId;
}
}
// Domain DNS Zone
if (createZoneRecord && (domainId > 0))
{
ServerController.EnableDomainDns(domainId);
}
}
}