summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/org/label.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/org/label.go')
-rw-r--r--routers/api/v1/org/label.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/label.go b/routers/api/v1/org/label.go
index 7d4c12d364..d36b1d9a98 100644
--- a/routers/api/v1/org/label.go
+++ b/routers/api/v1/org/label.go
@@ -99,7 +99,7 @@ func CreateLabel(ctx *context.APIContext) {
OrgID: ctx.Org.Organization.ID,
Description: form.Description,
}
- if err := models.NewLabel(label); err != nil {
+ if err := models.NewLabel(ctx, label); err != nil {
ctx.Error(http.StatusInternalServerError, "NewLabel", err)
return
}