0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-26 17:33:01 +01:00

Avoid setting missing label/milestone/assignee ids

Label, milestone, assignee ids are not includes in post request, possible
js or form building bug.
This commit is contained in:
Tony Tsang 2014-10-22 14:52:49 +08:00
parent 93b9a2acc0
commit d87a9cb362

View file

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