Skip to content

Commit 7b4563c

Browse files
committed
refactor
1 parent 4e89634 commit 7b4563c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/issue_search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func applySorts(sess *xorm.Session, sortType string, priorityRepoID int64) {
7474
if strings.HasPrefix(sortType, "scope-") {
7575
scope := strings.TrimPrefix(sortType, "scope-")
7676
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))
77+
sess.Join("LEFT", "label", "label.id = issue_label.label_id and label.name LIKE ?", scope+"/%")
7878
sess.Asc("label.exclusive_order").Desc("issue.id")
7979
return // EARLY RETURN
8080
}

0 commit comments

Comments
 (0)