diff options
author | Tony Tsang <tony@tcnhk.com> | 2014-10-21 16:27:01 +0800 |
---|---|---|
committer | Tony Tsang <tony@tcnhk.com> | 2014-10-21 16:27:01 +0800 |
commit | 93b9a2acc024839b94178d621c2eb1c7e7b5b81e (patch) | |
tree | 326a5e5b906d0ce9439b9965cca5d4e6fa6d8f18 | |
parent | d4a608f64c50c940e79d33014052c4238cdcd172 (diff) | |
download | gitea-93b9a2acc024839b94178d621c2eb1c7e7b5b81e.tar.gz gitea-93b9a2acc024839b94178d621c2eb1c7e7b5b81e.zip |
Fix misuse of issue index for issue id.
- UpdateAssignee
- UpdateIssueMilestone
-rw-r--r-- | routers/repo/issue.go | 4 |
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 |