mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 22:37:06 -04:00
Allow 0 as valid value in QualityProfileExistsValidator
This commit is contained in:
parent
e53b7f8c94
commit
36ca24e55a
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ namespace NzbDrone.Core.Validation
|
||||||
|
|
||||||
protected override bool IsValid(PropertyValidatorContext context)
|
protected override bool IsValid(PropertyValidatorContext context)
|
||||||
{
|
{
|
||||||
if (context.PropertyValue == null)
|
if (context?.PropertyValue == null || (int)context.PropertyValue == 0)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue