summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-02-09 17:59:57 +0800
committerGitHub <noreply@github.com>2017-02-09 17:59:57 +0800
commitb6dd6210eaebc915fd5be5579c58cce4da2e2579 (patch)
tree13c1895021d07b89c8db0ad5aeb559e358bd4032 /models/issue.go
parent40f43777171e9dce1be0d27aaa14b8e4160dd434 (diff)
downloadgitea-b6dd6210eaebc915fd5be5579c58cce4da2e2579.tar.gz
gitea-b6dd6210eaebc915fd5be5579c58cce4da2e2579.zip
bug fixed for issue count (#881)
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go
index 2d57c48269..48d845e6e8 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -1312,7 +1312,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)