1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-02-23 22:51:19 +00:00

Allow 0 as valid value in QualityProfileExistsValidator

This commit is contained in:
Bogdan 2023-10-25 18:28:57 +03:00 committed by Mark McDowall
parent e53b7f8c94
commit 36ca24e55a

View file

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