Fix misuse of issue index for issue id.
- UpdateAssignee - UpdateIssueMilestonerelease/v1.15
parent
d4a608f64c
commit
93b9a2acc0
|
@ -565,7 +565,7 @@ func UpdateIssueMilestone(ctx *middleware.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
issueId := com.StrTo(ctx.Params(":index")).MustInt64()
|
issueId := com.StrTo(ctx.Query("issue")).MustInt64()
|
||||||
if issueId == 0 {
|
if issueId == 0 {
|
||||||
ctx.Error(404)
|
ctx.Error(404)
|
||||||
return
|
return
|
||||||
|
@ -611,7 +611,7 @@ func UpdateAssignee(ctx *middleware.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
issueId := com.StrTo(ctx.Params(":index")).MustInt64()
|
issueId := com.StrTo(ctx.Query("issue")).MustInt64()
|
||||||
if issueId == 0 {
|
if issueId == 0 {
|
||||||
ctx.Error(404)
|
ctx.Error(404)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue