Allow 0 as valid value in QualityProfileExistsValidator

(cherry picked from commit 36ca24e55a5eda859047d82855f65c401cc0b30f)
pull/3035/head
Bogdan 8 months ago committed by servarr
parent bd25c9e3e0
commit 9894ce758c

@ -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;
}

Loading…
Cancel
Save