summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-10-22 08:44:33 -0400
committer无闻 <joe2010xtmf@163.com>2014-10-22 08:44:33 -0400
commitd7ea49b9f52a065dc34933ecc056e3b6b6b0fad9 (patch)
tree17d37c4c0078d0716435d6f5f8140c53047cec13
parentd4a608f64c50c940e79d33014052c4238cdcd172 (diff)
parentd87a9cb362e43e2f7182c77d7125b0afcdb56e7d (diff)
downloadgitea-d7ea49b9f52a065dc34933ecc056e3b6b6b0fad9.tar.gz
gitea-d7ea49b9f52a065dc34933ecc056e3b6b6b0fad9.zip
Merge pull request #579 from TonyTsangHK/dev
Fix misuse of issue index for issue id.
-rw-r--r--routers/repo/issue.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index e611032e37..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 == "" {
@@ -565,7 +565,7 @@ func UpdateIssueMilestone(ctx *middleware.Context) {
return
}
- issueId := com.StrTo(ctx.Params(":index")).MustInt64()
+ issueId := com.StrTo(ctx.Query("issue")).MustInt64()
if issueId == 0 {
ctx.Error(404)
return
@@ -611,7 +611,7 @@ func UpdateAssignee(ctx *middleware.Context) {
return
}
- issueId := com.StrTo(ctx.Params(":index")).MustInt64()
+ issueId := com.StrTo(ctx.Query("issue")).MustInt64()
if issueId == 0 {
ctx.Error(404)
return