Skip to content

Commit 3e9c83a

Browse files
committed
rename issueID to issueIndex
1 parent fbe30c3 commit 3e9c83a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routers/web/repo/projects.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ func MoveIssueAcrossBoards(ctx *context.Context) {
602602
}
603603
}
604604

605-
issue, err := models.GetIssueByID(ctx.ParamsInt64(":issueID"))
605+
issue, err := models.GetIssueByID(ctx.ParamsInt64(":issueIndex"))
606606
if err != nil {
607607
if models.IsErrIssueNotExist(err) {
608608
ctx.NotFound("", nil)

routers/web/web.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ func RegisterRoutes(m *web.Route) {
872872
m.Delete("", repo.DeleteProjectBoard)
873873
m.Post("/default", repo.SetDefaultProjectBoard)
874874

875-
m.Post("/{issueID}/{sorting}", repo.MoveIssueAcrossBoards)
875+
m.Post("/{issueIndex}/{sorting}", repo.MoveIssueAcrossBoards)
876876
})
877877
})
878878
}, reqRepoProjectsWriter, context.RepoMustNotBeArchived())

0 commit comments

Comments
 (0)