From 2559a34b97c4f156a4fec82b03b88a6ba4caeb76 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sun, 25 Jun 2017 02:15:09 -0400 Subject: Load label ID in NewLabels (#2045) --- routers/api/v1/repo/label.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/repo/label.go') diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index c22db517c3..c932fb1585 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -64,7 +64,7 @@ func CreateLabel(ctx *context.APIContext, form api.CreateLabelOption) { Color: form.Color, RepoID: ctx.Repo.Repository.ID, } - if err := models.NewLabels(label); err != nil { + if err := models.NewLabel(label); err != nil { ctx.Error(500, "NewLabel", err) return } -- cgit v1.2.3