From d50091f3a4085a0c684d6c08088689e8130cefcd Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 13 Nov 2012 08:27:48 -0800 Subject: [PATCH] Added Binder (full of Women) from int to qualityTypes --- NzbDrone.Web/Global.asax.cs | 5 ++++- NzbDrone.Web/NzbDrone.Web.csproj | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Web/Global.asax.cs b/NzbDrone.Web/Global.asax.cs index f9ff29cf9..4c4940fdd 100644 --- a/NzbDrone.Web/Global.asax.cs +++ b/NzbDrone.Web/Global.asax.cs @@ -13,6 +13,8 @@ using NLog; using NzbDrone.Common; using NzbDrone.Core; +using NzbDrone.Core.Repository.Quality; +using NzbDrone.Web.Helpers.Binders; namespace NzbDrone.Web { @@ -48,6 +50,8 @@ protected override void OnApplicationStarted() ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(razor); + ModelBinders.Binders.Add(typeof(QualityTypes), new QualityTypesBinder()); + RegisterGlobalFilters(GlobalFilters.Filters); Logger.Info("Fully initialized and ready."); @@ -63,7 +67,6 @@ protected override IKernel CreateKernel() return dispatch.Kernel; } - public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 5b4724237..8a0c7b4a3 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -154,6 +154,7 @@ +