From 989dd5502cad270b461f8c59cf186638dc9a4f16 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 31 Aug 2022 23:40:29 +0800 Subject: [PATCH] Fix missed sort bug (#21006) Co-authored-by: John Olheiser --- 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 c054fa3a434..69b7ee805e1 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