Skip to content

Commit

Permalink
rename issueID to issueIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten committed Sep 25, 2021
1 parent fbe30c3 commit 3e9c83a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routers/web/repo/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func MoveIssueAcrossBoards(ctx *context.Context) {
}
}

issue, err := models.GetIssueByID(ctx.ParamsInt64(":issueID"))
issue, err := models.GetIssueByID(ctx.ParamsInt64(":issueIndex"))
if err != nil {
if models.IsErrIssueNotExist(err) {
ctx.NotFound("", nil)
Expand Down
2 changes: 1 addition & 1 deletion routers/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ func RegisterRoutes(m *web.Route) {
m.Delete("", repo.DeleteProjectBoard)
m.Post("/default", repo.SetDefaultProjectBoard)

m.Post("/{issueID}/{sorting}", repo.MoveIssueAcrossBoards)
m.Post("/{issueIndex}/{sorting}", repo.MoveIssueAcrossBoards)
})
})
}, reqRepoProjectsWriter, context.RepoMustNotBeArchived())
Expand Down

0 comments on commit 3e9c83a

Please sign in to comment.