diff --git a/NzbDrone.Web/Models/SearchItemModel.cs b/NzbDrone.Web/Models/SearchItemModel.cs index 7e9821a18..b48615e6c 100644 --- a/NzbDrone.Web/Models/SearchItemModel.cs +++ b/NzbDrone.Web/Models/SearchItemModel.cs @@ -5,6 +5,11 @@ namespace NzbDrone.Web.Models { public class SearchItemModel { + public SearchItemModel() + { + Details = ""; + } + public int Id { get; set; } public string ReportTitle { get; set; } public string Indexer { get; set; } diff --git a/NzbDrone.Web/Views/SearchHistory/Details.cshtml b/NzbDrone.Web/Views/SearchHistory/Details.cshtml index 3f72e1cec..12ef9c75b 100644 --- a/NzbDrone.Web/Views/SearchHistory/Details.cshtml +++ b/NzbDrone.Web/Views/SearchHistory/Details.cshtml @@ -21,11 +21,11 @@ .AddColumn(new Column().DisplayAndSort("Quality", "QualityInt").Title("Quality").Width("80px")) .AddColumn(new Column().DataProperty("SearchError").Title("Error")) .AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true).Sortable(false).Searchable(false)) - .AddColumn(new Column().DataProperty("Details").RenderFunction("return getDetails(row, val);").Visible(false)) + .AddColumn(new Column().DataProperty("Details").Sortable(false).Visible(false).RenderFunction("return details(row);")) .AddSorting(3, SortDirection.Desc))