1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#1659 fix change label title resets color

This commit is contained in:
Unknwon
2015-09-18 06:18:31 -04:00
parent 86d3c5cbb3
commit d9c5b3bcee
4 changed files with 4 additions and 2 deletions

View File

@@ -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 {