summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-01-24 21:43:02 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-25 10:43:02 +0800
commit833f8b94c2cd88277eba32984594aad2b7b2b05d (patch)
treead197af65043b654f0c64702db707b9335568bd7 /routers/user
parent8bc431952f4ae76559054c3a9f41804b145d9230 (diff)
downloadgitea-833f8b94c2cd88277eba32984594aad2b7b2b05d.tar.gz
gitea-833f8b94c2cd88277eba32984594aad2b7b2b05d.zip
Search bar for issues/pulls (#530)
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 571849df30..db2fe84f91 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -15,6 +15,7 @@ import (
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/util"
)
const (
@@ -277,8 +278,8 @@ func Issues(ctx *context.Context) {
PosterID: posterID,
RepoIDs: repoIDs,
Page: page,
- IsClosed: isShowClosed,
- IsPull: isPullList,
+ IsClosed: util.OptionalBoolOf(isShowClosed),
+ IsPull: util.OptionalBoolOf(isPullList),
SortType: sortType,
})
if err != nil {