summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-18 06:18:31 -0400
committerUnknwon <u@gogs.io>2015-09-18 06:18:31 -0400
commitd9c5b3bceef42f269e16c6d2f2b4a4ad29f7882d (patch)
tree7d0caaaa7d69d879b898c0086ba319f0cf886ef9 /routers/repo
parent86d3c5cbb3c8a500c08aa393a1b00aff754de31f (diff)
downloadgitea-d9c5b3bceef42f269e16c6d2f2b4a4ad29f7882d.tar.gz
gitea-d9c5b3bceef42f269e16c6d2f2b4a4ad29f7882d.zip
#1659 fix change label title resets color
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index cc344bd080..6912a2faf2 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -904,6 +904,7 @@ func UpdateLabel(ctx *middleware.Context, form auth.CreateLabelForm) {
return
}
+ fmt.Println(form.Title, form.Color)
l.Name = form.Title
l.Color = form.Color
if err := models.UpdateLabel(l); err != nil {