Skip to content

Commit

Permalink
Fix org label open count, including close count issue (#20353)
Browse files Browse the repository at this point in the history
Fixed using organization tags to see open issues in the tag list including closed issues count
  • Loading branch information
tyroneyeh committed Jul 14, 2022
1 parent ed094db commit 715042c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/issues/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"code.gitea.io/gitea/models/db"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/timeutil"
"code.gitea.io/gitea/modules/util"

"xorm.io/builder"
)
Expand Down Expand Up @@ -107,6 +108,7 @@ func (label *Label) CalOpenOrgIssues(repoID, labelID int64) {
counts, _ := CountIssuesByRepo(&IssuesOptions{
RepoID: repoID,
LabelIDs: []int64{labelID},
IsClosed: util.OptionalBoolFalse,
})

for _, count := range counts {
Expand Down

0 comments on commit 715042c

Please sign in to comment.