fix bug in SpaceQuotasControl.
This commit is contained in:
parent
c15aff08b0
commit
732f827e82
2 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<div class="Quota">
|
<div class="Quota">
|
||||||
<div class="Left">
|
<div class="Left">
|
||||||
<%# GetQuotaTitle((string)Eval("QuotaName"), (string)Eval("QuotaDescription"))%>:
|
<%# GetQuotaTitle((string)Eval("QuotaName"), (object)Eval("QuotaDescription"))%>:
|
||||||
</div>
|
</div>
|
||||||
<div class="Viewer">
|
<div class="Viewer">
|
||||||
<uc1:QuotaViewer ID="quota" runat="server"
|
<uc1:QuotaViewer ID="quota" runat="server"
|
||||||
|
|
|
@ -76,11 +76,11 @@ namespace WebsitePanel.Portal
|
||||||
return new DataView(dsQuotas.Tables[1], "GroupID=" + groupId.ToString(), "", DataViewRowState.CurrentRows);
|
return new DataView(dsQuotas.Tables[1], "GroupID=" + groupId.ToString(), "", DataViewRowState.CurrentRows);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetQuotaTitle(string quotaName, string quotaDescription)
|
public string GetQuotaTitle(string quotaName, object quotaDescription)
|
||||||
{
|
{
|
||||||
return quotaName.Contains("ServiceLevel") ?
|
string description = (quotaDescription.GetType() == typeof(System.DBNull)) ? string.Empty : (string)quotaDescription;
|
||||||
(string.IsNullOrEmpty(quotaDescription) ?
|
|
||||||
string.Empty : quotaDescription).ToString()
|
return quotaName.Contains("ServiceLevel") ? description
|
||||||
: GetSharedLocalizedString("Quota." + quotaName);
|
: GetSharedLocalizedString("Quota." + quotaName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue