Fixed: Hide integrated ou provisioning when no hosted organizations are enabled
within hosting plan
This commit is contained in:
parent
20ea2117d0
commit
e09496e4d3
3 changed files with 6 additions and 4 deletions
|
@ -99,7 +99,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="SubHead">
|
||||
<td class="Normal" width="100%">
|
||||
<asp:Label ID="lblHostName" runat="server" meta:resourcekey="lblHostName" Text="Host name:"></asp:Label>
|
||||
<asp:TextBox ID="txtHostName" runat="server" CssClass="TextBox100" MaxLength="64" ></asp:TextBox>
|
||||
</td>
|
||||
|
|
|
@ -86,6 +86,7 @@ namespace WebsitePanel.Portal
|
|||
bool webEnabled = false;
|
||||
bool ftpEnabled = false;
|
||||
bool mailEnabled = false;
|
||||
bool integratedOUEnabled = false;
|
||||
|
||||
// load hosting context
|
||||
if (planId > 0)
|
||||
|
@ -111,6 +112,7 @@ namespace WebsitePanel.Portal
|
|||
|
||||
ftpEnabled = cntx.Groups.ContainsKey(ResourceGroups.Ftp);
|
||||
mailEnabled = cntx.Groups.ContainsKey(ResourceGroups.Mail);
|
||||
integratedOUEnabled = cntx.Groups.ContainsKey(ResourceGroups.HostedOrganizations);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -129,7 +131,7 @@ namespace WebsitePanel.Portal
|
|||
|
||||
ftpAccountName.Visible = (rbFtpAccountName.SelectedIndex == 1);
|
||||
|
||||
chkIntegratedOUProvisioning.Visible = chkCreateResources.Visible;
|
||||
chkIntegratedOUProvisioning.Checked = chkIntegratedOUProvisioning.Visible = (chkCreateResources.Visible && integratedOUEnabled);
|
||||
}
|
||||
|
||||
private void CreateHostingSpace()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue