From e6fa14b1e6a6ff6fe10a0965e38650badb232d0b Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 25 Oct 2023 18:28:57 +0300 Subject: [PATCH] Allow 0 as valid value in QualityProfileExistsValidator (cherry picked from commit 36ca24e55a5eda859047d82855f65c401cc0b30f) --- src/NzbDrone.Core/Validation/ProfileExistsValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Validation/ProfileExistsValidator.cs b/src/NzbDrone.Core/Validation/ProfileExistsValidator.cs index 27ad22fcb..b4041fc01 100644 --- a/src/NzbDrone.Core/Validation/ProfileExistsValidator.cs +++ b/src/NzbDrone.Core/Validation/ProfileExistsValidator.cs @@ -16,7 +16,7 @@ namespace NzbDrone.Core.Validation protected override bool IsValid(PropertyValidatorContext context) { - if (context.PropertyValue == null) + if (context?.PropertyValue == null || (int)context.PropertyValue == 0) { return true; }