aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorVyacheslav Bakhmutov <m0sth8@yandex-team.ru>2014-09-03 00:04:22 +0700
committerVyacheslav Bakhmutov <m0sth8@yandex-team.ru>2014-09-03 00:04:22 +0700
commit2a7a03e5b3ca1f24b35003082902e7dda37991bc (patch)
tree3fbf2eb3e158700ac5636b2dc3e8b3f9a2750233 /routers/repo/issue.go
parentf19fc230d43dfcdc1f04cf7fbf611650029892bb (diff)
downloadgitea-2a7a03e5b3ca1f24b35003082902e7dda37991bc.tar.gz
gitea-2a7a03e5b3ca1f24b35003082902e7dda37991bc.zip
take params for milestone and assignee from query instead of path args
Diffstat (limited to 'routers/repo/issue.go')
-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 412d03c6e6..59921d5515 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -582,7 +582,7 @@ func UpdateIssueMilestone(ctx *middleware.Context) {
}
oldMid := issue.MilestoneId
- mid := com.StrTo(ctx.Params(":milestone")).MustInt64()
+ mid := com.StrTo(ctx.Query("milestoneid")).MustInt64()
if oldMid == mid {
ctx.JSON(200, map[string]interface{}{
"ok": true,
@@ -627,7 +627,7 @@ func UpdateAssignee(ctx *middleware.Context) {
return
}
- aid := com.StrTo(ctx.Params(":assigneeid")).MustInt64()
+ aid := com.StrTo(ctx.Query("assigneeid")).MustInt64()
// Not check for invalid assignne id and give responsibility to owners.
issue.AssigneeId = aid
if err = models.UpdateIssueUserPairByAssignee(aid, issue.Id); err != nil {