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>
|
||||
<div class="Quota">
|
||||
<div class="Left">
|
||||
<%# GetQuotaTitle((string)Eval("QuotaName"), (string)Eval("QuotaDescription"))%>:
|
||||
<%# GetQuotaTitle((string)Eval("QuotaName"), (object)Eval("QuotaDescription"))%>:
|
||||
</div>
|
||||
<div class="Viewer">
|
||||
<uc1:QuotaViewer ID="quota" runat="server"
|
||||
|
|
|
@ -76,11 +76,11 @@ namespace WebsitePanel.Portal
|
|||
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.IsNullOrEmpty(quotaDescription) ?
|
||||
string.Empty : quotaDescription).ToString()
|
||||
string description = (quotaDescription.GetType() == typeof(System.DBNull)) ? string.Empty : (string)quotaDescription;
|
||||
|
||||
return quotaName.Contains("ServiceLevel") ? description
|
||||
: GetSharedLocalizedString("Quota." + quotaName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue