summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-25 22:58:34 +0800
committerUnknwon <u@gogs.io>2015-08-25 22:58:34 +0800
commitf808df5a7b36d134ec92d62e9041a6320f416054 (patch)
tree9aa7c7758a02e1d8fa87a9af8ada4f3296eca0ae /routers/repo/issue.go
parentbe90ea583a3d65566be8bfbf3440cf0c20557972 (diff)
downloadgitea-f808df5a7b36d134ec92d62e9041a6320f416054.tar.gz
gitea-f808df5a7b36d134ec92d62e9041a6320f416054.zip
new user dahsboard issues
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go6
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 {