From a32f5f663966b82e4b6697f56f627802cb7f6fc5 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/QualityProfileExistsValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Validation/QualityProfileExistsValidator.cs b/src/NzbDrone.Core/Validation/QualityProfileExistsValidator.cs index f8321f960..acfcdc402 100644 --- a/src/NzbDrone.Core/Validation/QualityProfileExistsValidator.cs +++ b/src/NzbDrone.Core/Validation/QualityProfileExistsValidator.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; }