Skip to content

Commit b6dd621

Browse files
authored
bug fixed for issue count (#881)
1 parent 40f4377 commit b6dd621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ func GetUserIssueStats(repoID, uid int64, repoIDs []int64, filterMode int, isPul
13121312
func GetRepoIssueStats(repoID, uid int64, filterMode int, isPull bool) (numOpen int64, numClosed int64) {
13131313
countSession := func(isClosed, isPull bool, repoID int64) *xorm.Session {
13141314
sess := x.
1315-
Where("issue.repo_id = ?", isClosed).
1315+
Where("is_closed = ?", isClosed).
13161316
And("is_pull = ?", isPull).
13171317
And("repo_id = ?", repoID)
13181318

0 commit comments

Comments
 (0)