This commit is contained in:
Virtuworks 2013-01-16 18:23:44 -05:00
commit a2706545bb

View file

@ -165,7 +165,7 @@ namespace WebsitePanel.EnterpriseServer
// create domain // create domain
int domainId = 0; int domainId = 0;
if ((createWebSite || createMailAccount) && !String.IsNullOrEmpty(domainName)) if ((createWebSite || createMailAccount || createZoneRecord) && !String.IsNullOrEmpty(domainName))
{ {
try try
{ {
@ -193,7 +193,7 @@ namespace WebsitePanel.EnterpriseServer
} }
} }
if (createWebSite && !String.IsNullOrEmpty(domainName)) if (createWebSite && (domainId > 0))
{ {
// create web site // create web site
try try
@ -252,7 +252,7 @@ namespace WebsitePanel.EnterpriseServer
} }
} }
if (createMailAccount && !String.IsNullOrEmpty(domainName)) if (createMailAccount && (domainId > 0))
{ {
// create default mailbox // create default mailbox
try try