diff options
author | Unknwon <u@gogs.io> | 2015-09-08 06:34:02 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-08 06:34:02 -0400 |
commit | 49e120a67c2d27597764eb260cdec07b5fd67fbb (patch) | |
tree | d6253f1b553b009c3b785673fa01c681d882d466 /models/issue.go | |
parent | af324a6165a19269f6046b8ff489e65530083564 (diff) | |
download | gitea-49e120a67c2d27597764eb260cdec07b5fd67fbb.tar.gz gitea-49e120a67c2d27597764eb260cdec07b5fd67fbb.zip |
#1602 change status after comment issue
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index dbc63b9574..00db990d8f 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), ",") + ")" |