Skip to content

Commit 89b56b8

Browse files
committed
fine tune
1 parent b384bb1 commit 89b56b8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

models/issues/issue_search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func applySorts(sess *xorm.Session, sortType string, priorityRepoID int64) {
7676
sess.Join("LEFT", "issue_label", "issue.id = issue_label.issue_id")
7777
sess.Join("LEFT", "label", "label.id = issue_label.label_id and label.name LIKE ?", scope+"/%")
7878
sess.Asc("label.exclusive_order").Desc("issue.id")
79-
return // EARLY RETURN
79+
return
8080
}
8181

8282
switch sortType {

models/migrations/v1_24/v314.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 The Gitea Authors. All rights reserved.
1+
// Copyright 2025 The Gitea Authors. All rights reserved.
22
// SPDX-License-Identifier: MIT
33

44
package v1_24 //nolint

templates/repo/issue/filter_list.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@
135135
<a class="{{if eq .SortType "farduedate"}}active {{end}}item" href="{{QueryBuild $queryLink "sort" "farduedate"}}">{{ctx.Locale.Tr "repo.issues.filter_sort.farduedate"}}</a>
136136
<div class="divider"></div>
137137
<div class="header">{{ctx.Locale.Tr "repo.issues.filter_label"}}</div>
138-
{{range .ExclusiveLabelScopes}}
139-
{{$scope := .}}
138+
{{range $scope := .ExclusiveLabelScopes}}
140139
{{$sortType := (printf "scope-%s" $scope)}}
141140
<a class="{{if eq $.SortType $sortType}}active {{end}}item" href="{{QueryBuild $queryLink "sort" $sortType}}">{{$scope}}</a>
142141
{{end}}

0 commit comments

Comments
 (0)