diff options
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 8790fcd7b3..f34ece7787 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -79,11 +79,11 @@ func Issues(ctx *middleware.Context) { filterMode := models.FM_ALL switch viewType { case "assigned": - assigneeID = ctx.User.Id filterMode = models.FM_ASSIGN + assigneeID = ctx.User.Id case "created_by": - posterID = ctx.User.Id filterMode = models.FM_CREATE + posterID = ctx.User.Id case "mentioned": filterMode = models.FM_MENTION } @@ -97,7 +97,7 @@ func Issues(ctx *middleware.Context) { selectLabels := ctx.Query("labels") milestoneID := ctx.QueryInt64("milestone") isShowClosed := ctx.Query("state") == "closed" - issueStats := models.GetIssueStats(repo.ID, uid, com.StrTo(selectLabels).MustInt64(), milestoneID, assigneeID, isShowClosed, filterMode) + issueStats := models.GetIssueStats(repo.ID, uid, com.StrTo(selectLabels).MustInt64(), milestoneID, assigneeID, filterMode) page := ctx.QueryInt("page") if page <= 1 { |