mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 00:03:35 +01:00
Fix misuse of issue index for issue id.
- UpdateAssignee - UpdateIssueMilestone
This commit is contained in:
parent
d4a608f64c
commit
93b9a2acc0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue