1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
This commit is contained in:
Thomas E Lackey 2025-01-10 15:22:38 -06:00
parent 4e89634bd8
commit 7b4563c88b

View File

@ -74,7 +74,7 @@ func applySorts(sess *xorm.Session, sortType string, priorityRepoID int64) {
if strings.HasPrefix(sortType, "scope-") {
scope := strings.TrimPrefix(sortType, "scope-")
sess.Join("LEFT", "issue_label", "issue.id = issue_label.issue_id")
sess.Join("LEFT", "label", "label.id = issue_label.label_id and label.name LIKE ?", fmt.Sprintf("%s/%%", scope))
sess.Join("LEFT", "label", "label.id = issue_label.label_id and label.name LIKE ?", scope+"/%")
sess.Asc("label.exclusive_order").Desc("issue.id")
return // EARLY RETURN
}