tokarchuk/v1.17
Unknwon 9 years ago
parent a3683ca5d6
commit 8d73832bdf
  1. 2
      models/issue.go
  2. 4
      routers/user/home.go

@ -410,7 +410,7 @@ func Issues(uid, assigneeID, repoID, posterID, milestoneID int64, repoIDs []int6
if repoID > 0 { if repoID > 0 {
sess.Where("issue.repo_id=?", repoID).And("issue.is_closed=?", isClosed) sess.Where("issue.repo_id=?", repoID).And("issue.is_closed=?", isClosed)
} else if repoIDs != nil { } else if repoIDs != nil {
sess.Where("issue.repo_id IN (?)", strings.Join(base.Int64sToStrings(repoIDs), ",")).And("issue.is_closed=?", isClosed) sess.Where("issue.repo_id IN ("+strings.Join(base.Int64sToStrings(repoIDs), ",")+")").And("issue.is_closed=?", isClosed)
} else { } else {
sess.Where("issue.is_closed=?", isClosed) sess.Where("issue.is_closed=?", isClosed)
} }

@ -224,10 +224,6 @@ func Issues(ctx *middleware.Context) {
} }
ctx.Data["Repos"] = showRepos ctx.Data["Repos"] = showRepos
if repoID > 0 {
repoIDs = []int64{repoID}
}
issueStats := models.GetUserIssueStats(repoID, ctxUser.Id, repoIDs, filterMode) issueStats := models.GetUserIssueStats(repoID, ctxUser.Id, repoIDs, filterMode)
issueStats.AllCount = int64(allCount) issueStats.AllCount = int64(allCount)

Loading…
Cancel
Save