1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fixed: Profiles always failing validation.

This commit is contained in:
Leonardo Galli 2018-09-11 23:52:07 +02:00
parent 64e8fde0e1
commit 617c7bae83

View File

@ -25,7 +25,7 @@ public ProfileModule(IProfileService profileService, ICustomFormatService format
{ {
var all = _formatService.All().Select(f => f.Id).ToList(); var all = _formatService.All().Select(f => f.Id).ToList();
all.Add(CustomFormat.None.Id); 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(); return all.Except(ids).Empty();
}).WithMessage("All Custom Formats and no extra ones need to be present inside your Profile! Try refreshing your browser."); }).WithMessage("All Custom Formats and no extra ones need to be present inside your Profile! Try refreshing your browser.");