diff options
author | Tony Tsang <tony@tcnhk.com> | 2014-10-22 14:52:49 +0800 |
---|---|---|
committer | Tony Tsang <tony@tcnhk.com> | 2014-10-22 14:52:49 +0800 |
commit | d87a9cb362e43e2f7182c77d7125b0afcdb56e7d (patch) | |
tree | 17d37c4c0078d0716435d6f5f8140c53047cec13 /routers | |
parent | 93b9a2acc024839b94178d621c2eb1c7e7b5b81e (diff) | |
download | gitea-d87a9cb362e43e2f7182c77d7125b0afcdb56e7d.tar.gz gitea-d87a9cb362e43e2f7182c77d7125b0afcdb56e7d.zip |
Avoid setting missing label/milestone/assignee ids
Label, milestone, assignee ids are not includes in post request, possible
js or form building bug.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index a675579349..e3a14e193b 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -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 == "" { |