aboutsummaryrefslogtreecommitdiffstats
path: root/models/project_board.go
diff options
context:
space:
mode:
authorAnbraten <anton@ju60.de>2021-12-08 07:57:18 +0100
committerGitHub <noreply@github.com>2021-12-08 14:57:18 +0800
commit0ff18a808c7c14d42ea2325b5d9623f7a30d9107 (patch)
tree6271529776d63a8c741bc3159cd5cfacd5539be1 /models/project_board.go
parent4cbe792562e69e76df07cfa4aa9c0c254b2dec7c (diff)
downloadgitea-0ff18a808c7c14d42ea2325b5d9623f7a30d9107.tar.gz
gitea-0ff18a808c7c14d42ea2325b5d9623f7a30d9107.zip
Support sorting for project board issuses (#17152)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'models/project_board.go')
-rw-r--r--models/project_board.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/project_board.go b/models/project_board.go
index 2d422a203b..d40cfd06f0 100644
--- a/models/project_board.go
+++ b/models/project_board.go
@@ -265,6 +265,7 @@ func (b *ProjectBoard) LoadIssues() (IssueList, error) {
issues, err := Issues(&IssuesOptions{
ProjectBoardID: b.ID,
ProjectID: b.ProjectID,
+ SortType: "project-column-sorting",
})
if err != nil {
return nil, err
@@ -276,6 +277,7 @@ func (b *ProjectBoard) LoadIssues() (IssueList, error) {
issues, err := Issues(&IssuesOptions{
ProjectBoardID: -1, // Issues without ProjectBoardID
ProjectID: b.ProjectID,
+ SortType: "project-column-sorting",
})
if err != nil {
return nil, err