mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-06 18:35:23 +02:00
Load label ID in NewLabels (#2045)
This commit is contained in:
parent
f64c232953
commit
2559a34b97
4 changed files with 25 additions and 6 deletions
|
@ -89,7 +89,7 @@ func NewLabel(ctx *context.Context, form auth.CreateLabelForm) {
|
|||
Name: form.Title,
|
||||
Color: form.Color,
|
||||
}
|
||||
if err := models.NewLabels(l); err != nil {
|
||||
if err := models.NewLabel(l); err != nil {
|
||||
ctx.Handle(500, "NewLabel", err)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue