mirror of
https://github.com/Lidarr/Lidarr
synced 2026-03-04 11:32:39 +01:00
Allow 0 as valid value in QualityProfileExistsValidator
(cherry picked from commit 36ca24e55a5eda859047d82855f65c401cc0b30f)
This commit is contained in:
parent
ed59752268
commit
bba85f11e6
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ public QualityProfileExistsValidator(IQualityProfileService profileService)
|
|||
|
||||
protected override bool IsValid(PropertyValidatorContext context)
|
||||
{
|
||||
if (context.PropertyValue == null)
|
||||
if (context?.PropertyValue == null || (int)context.PropertyValue == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue