From 49e120a67c2d27597764eb260cdec07b5fd67fbb Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 8 Sep 2015 06:34:02 -0400 Subject: #1602 change status after comment issue --- models/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') diff --git a/models/issue.go b/models/issue.go index dbc63b95..00db990d 100644 --- a/models/issue.go +++ b/models/issue.go @@ -758,7 +758,7 @@ func GetUserIssueStats(repoID, uid int64, repoIDs []int64, filterMode int, isPul queryStr := "SELECT COUNT(*) FROM `issue` " baseCond := " WHERE issue.is_closed=?" - if repoID > 0 { + if repoID > 0 || len(repoIDs) == 0 { baseCond += " AND issue.repo_id=" + com.ToStr(repoID) } else { baseCond += " AND issue.repo_id IN (" + strings.Join(base.Int64sToStrings(repoIDs), ",") + ")" -- cgit v1.2.3