summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/repo/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index e611032e37..a675579349 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -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