From ecee350575fd47c66afc0f99058533f0f2ebc1b1 Mon Sep 17 00:00:00 2001 From: Tyrone Yeh Date: Thu, 14 Jul 2022 09:36:47 +0800 Subject: [PATCH] Fix org label open count, including close count issue --- models/issue_label.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/issue_label.go b/models/issue_label.go index 4124f3d74a164..ac28829c7d2e3 100644 --- a/models/issue_label.go +++ b/models/issue_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" ) @@ -104,6 +105,7 @@ func (label *Label) CalOpenOrgIssues(repoID, labelID int64) { counts, _ := CountIssuesByRepo(&IssuesOptions{ RepoID: repoID, LabelIDs: []int64{labelID}, + IsClosed: util.OptionalBoolFalse, }) for _, count := range counts {