We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e89634 commit 7b4563cCopy full SHA for 7b4563c
models/issues/issue_search.go
@@ -74,7 +74,7 @@ func applySorts(sess *xorm.Session, sortType string, priorityRepoID int64) {
74
if strings.HasPrefix(sortType, "scope-") {
75
scope := strings.TrimPrefix(sortType, "scope-")
76
sess.Join("LEFT", "issue_label", "issue.id = issue_label.issue_id")
77
- 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+"/%")
78
sess.Asc("label.exclusive_order").Desc("issue.id")
79
return // EARLY RETURN
80
}
0 commit comments