mirror of
https://github.com/Radarr/Radarr
synced 2026-05-09 11:10:23 +02:00
Fixed: Disallow tags creation with empty label
This commit is contained in:
parent
9c009a84f2
commit
99d68cfd91
1 changed files with 3 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using FluentValidation;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using NzbDrone.Core.AutoTagging;
|
using NzbDrone.Core.AutoTagging;
|
||||||
using NzbDrone.Core.Datastore.Events;
|
using NzbDrone.Core.Datastore.Events;
|
||||||
|
|
@ -23,6 +24,8 @@ public TagController(IBroadcastSignalRMessage signalRBroadcaster,
|
||||||
: base(signalRBroadcaster)
|
: base(signalRBroadcaster)
|
||||||
{
|
{
|
||||||
_tagService = tagService;
|
_tagService = tagService;
|
||||||
|
|
||||||
|
SharedValidator.RuleFor(c => c.Label).NotEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override TagResource GetResourceById(int id)
|
protected override TagResource GetResourceById(int id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue