From d37271442d6d5faa41771e17be7430b9fe0dc2fc Mon Sep 17 00:00:00 2001 From: Tyrone Yeh Date: Wed, 13 Jul 2022 17:19:59 +0800 Subject: [PATCH] Fix org label open count, including close count issue --- models/issues/label.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/issues/label.go b/models/issues/label.go index 9ad488252ab7f..667a608687436 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 {