1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-03-21 16:54:30 -04:00

Fixed: Disallow tags creation with empty label

This commit is contained in:
Bogdan
2025-04-07 15:54:06 +03:00
parent 9c009a84f2
commit 99d68cfd91

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using FluentValidation;
using Microsoft.AspNetCore.Mvc;
using NzbDrone.Core.AutoTagging;
using NzbDrone.Core.Datastore.Events;
@@ -23,6 +24,8 @@ namespace Radarr.Api.V3.Tags
: base(signalRBroadcaster)
{
_tagService = tagService;
SharedValidator.RuleFor(c => c.Label).NotEmpty();
}
protected override TagResource GetResourceById(int id)