summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorTyrone Yeh <tyrone_yeh@draytek.com>2022-07-14 10:09:03 +0800
committerGitHub <noreply@github.com>2022-07-14 04:09:03 +0200
commit715042c5bb7485e8463a37ed87bec81ae10ad9aa (patch)
tree6fd2cd45317b1640bac5cc81fcf037a467523bda /models
parented094dbab913d07bed5e55c6c224e33302da1895 (diff)
downloadgitea-715042c5bb7485e8463a37ed87bec81ae10ad9aa.tar.gz
gitea-715042c5bb7485e8463a37ed87bec81ae10ad9aa.zip
Fix org label open count, including close count issue (#20353)
Fixed using organization tags to see open issues in the tag list including closed issues count
Diffstat (limited to 'models')
-rw-r--r--models/issues/label.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/issues/label.go b/models/issues/label.go
index 9ad488252a..667a608687 100644
--- a/models/issues/label.go
+++ b/models/issues/label.go
@@ -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"
)
@@ -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 {