diff options
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/projects.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index 556656e5b5..2490efc923 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.go @@ -444,6 +444,7 @@ func AddBoardToProjectPost(ctx *context.Context) { if err := models.NewProjectBoard(&models.ProjectBoard{ ProjectID: project.ID, Title: form.Title, + Color: form.Color, CreatorID: ctx.User.ID, }); err != nil { ctx.ServerError("NewProjectBoard", err) @@ -513,6 +514,8 @@ func EditProjectBoard(ctx *context.Context) { board.Title = form.Title } + board.Color = form.Color + if form.Sorting != 0 { board.Sorting = form.Sorting } |