Browse Source

Avoid setting missing label/milestone/assignee ids

Label, milestone, assignee ids are not includes in post request, possible
js or form building bug.
pull/579/head
Tony Tsang 10 years ago
parent
commit
d87a9cb362
  1. 6
      routers/repo/issue.go

6
routers/repo/issue.go

@ -463,9 +463,9 @@ func UpdateIssue(ctx *middleware.Context, form auth.CreateIssueForm) {
} }
issue.Name = form.IssueName issue.Name = form.IssueName
issue.MilestoneId = form.MilestoneId //issue.MilestoneId = form.MilestoneId
issue.AssigneeId = form.AssigneeId //issue.AssigneeId = form.AssigneeId
issue.LabelIds = form.Labels //issue.LabelIds = form.Labels
issue.Content = form.Content issue.Content = form.Content
// try get content from text, ignore conflict with preview ajax // try get content from text, ignore conflict with preview ajax
if form.Content == "" { if form.Content == "" {

Loading…
Cancel
Save