summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorTony Tsang <tony@tcnhk.com>2014-10-22 14:52:49 +0800
committerTony Tsang <tony@tcnhk.com>2014-10-22 14:52:49 +0800
commitd87a9cb362e43e2f7182c77d7125b0afcdb56e7d (patch)
tree17d37c4c0078d0716435d6f5f8140c53047cec13 /routers
parent93b9a2acc024839b94178d621c2eb1c7e7b5b81e (diff)
downloadgitea-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.go6
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 == "" {