From 10a2ee9b3d3b7472910a68aadf02b69b390bde94 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 9 Feb 2017 16:55:49 +0800 Subject: [PATCH] bug fixed for issue count --- models/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issue.go b/models/issue.go index 13d27b22c625..7671aceb3587 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1279,7 +1279,7 @@ func GetUserIssueStats(repoID, uid int64, repoIDs []int64, filterMode int, isPul func GetRepoIssueStats(repoID, uid int64, filterMode int, isPull bool) (numOpen int64, numClosed int64) { countSession := func(isClosed, isPull bool, repoID int64) *xorm.Session { sess := x. - Where("issue.repo_id = ?", isClosed). + Where("is_closed = ?", isClosed). And("is_pull = ?", isPull). And("repo_id = ?", repoID)