From de5b8cfad889b9dcdd42d86f62482abc6e410cb2 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 1 Sep 2022 02:15:12 +0800 Subject: [PATCH] Fix missed sort bug (#20996) Co-authored-by: techknowlogick --- models/issues/issue_project.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/issues/issue_project.go b/models/issues/issue_project.go index aed78611eaca..8299087c5b10 100644 --- a/models/issues/issue_project.go +++ b/models/issues/issue_project.go @@ -68,6 +68,7 @@ func LoadIssuesFromBoard(b *project_model.Board) (IssueList, error) { issues, err := Issues(&IssuesOptions{ ProjectBoardID: b.ID, ProjectID: b.ProjectID, + SortType: "project-column-sorting", }) if err != nil { return nil, err @@ -79,6 +80,7 @@ func LoadIssuesFromBoard(b *project_model.Board) (IssueList, error) { issues, err := Issues(&IssuesOptions{ ProjectBoardID: -1, // Issues without ProjectBoardID ProjectID: b.ProjectID, + SortType: "project-column-sorting", }) if err != nil { return nil, err