aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues
diff options
context:
space:
mode:
authorTyrone Yeh <siryeh@gmail.com>2022-07-15 00:00:10 +0800
committerGitHub <noreply@github.com>2022-07-14 18:00:10 +0200
commit931c02d1521b7b990f70a590c691b066dbc27d4d (patch)
tree7d83e905b7d09b90eb82768a0347867cbbb03d9f /models/issues
parentf85bb6f70bb390ec04a296827ac0f2a078741a80 (diff)
downloadgitea-931c02d1521b7b990f70a590c691b066dbc27d4d.tar.gz
gitea-931c02d1521b7b990f70a590c691b066dbc27d4d.zip
Add order by for assignee no sort issue (#20053)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'models/issues')
-rw-r--r--models/issues/issue_list.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/issue_list.go b/models/issues/issue_list.go
index 20e9949b66..e311e80b1d 100644
--- a/models/issues/issue_list.go
+++ b/models/issues/issue_list.go
@@ -242,7 +242,7 @@ func (issues IssueList) loadAssignees(ctx context.Context) error {
}
rows, err := db.GetEngine(ctx).Table("issue_assignees").
Join("INNER", "`user`", "`user`.id = `issue_assignees`.assignee_id").
- In("`issue_assignees`.issue_id", issueIDs[:limit]).
+ In("`issue_assignees`.issue_id", issueIDs[:limit]).OrderBy(user_model.GetOrderByName()).
Rows(new(AssigneeIssue))
if err != nil {
return err