From 617c7bae83e2c8505e07c26dafb38f2c6c620bd7 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Tue, 11 Sep 2018 23:52:07 +0200 Subject: [PATCH] Fixed: Profiles always failing validation. --- src/NzbDrone.Api/Profiles/ProfileModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Api/Profiles/ProfileModule.cs b/src/NzbDrone.Api/Profiles/ProfileModule.cs index 2802a03fc..ed8c5c9bf 100644 --- a/src/NzbDrone.Api/Profiles/ProfileModule.cs +++ b/src/NzbDrone.Api/Profiles/ProfileModule.cs @@ -25,7 +25,7 @@ namespace NzbDrone.Api.Profiles { var all = _formatService.All().Select(f => f.Id).ToList(); all.Add(CustomFormat.None.Id); - var ids = items.Select(i => i.Id); + var ids = items.Select(i => i.Format.Id); return all.Except(ids).Empty(); }).WithMessage("All Custom Formats and no extra ones need to be present inside your Profile! Try refreshing your browser."); @@ -68,4 +68,4 @@ namespace NzbDrone.Api.Profiles return _profileService.All().ToResource(); } } -} \ No newline at end of file +}