Skip to content

Commit ab4eb0d

Browse files
authored
bug fixed for issue count (#882)
1 parent 155fb93 commit ab4eb0d

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
@@ -1279,7 +1279,7 @@ func GetUserIssueStats(repoID, uid int64, repoIDs []int64, filterMode int, isPul
12791279
func GetRepoIssueStats(repoID, uid int64, filterMode int, isPull bool) (numOpen int64, numClosed int64) {
12801280
countSession := func(isClosed, isPull bool, repoID int64) *xorm.Session {
12811281
sess := x.
1282-
Where("issue.repo_id = ?", isClosed).
1282+
Where("is_closed = ?", isClosed).
12831283
And("is_pull = ?", isPull).
12841284
And("repo_id = ?", repoID)
12851285

0 commit comments

Comments
 (0)