summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-01-02 01:49:42 +0800
committerGitHub <noreply@github.com>2021-01-01 12:49:42 -0500
commit21adeaad70ba2386673e00e69147b1cc40551b76 (patch)
treec508337c4ba642f50b70da810884134ac20799e0 /routers/user
parenta07e67d9cc39506c149cfadcf0d6f2ab234cf7f6 (diff)
downloadgitea-21adeaad70ba2386673e00e69147b1cc40551b76.tar.gz
gitea-21adeaad70ba2386673e00e69147b1cc40551b76.zip
Fix dashboard issues labels filter bug (#14210)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 27b7f3c29b..351af1c0d9 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -580,6 +580,7 @@ func Issues(ctx *context.Context) {
FilterMode: filterMode,
IsPull: isPullList,
IsClosed: isShowClosed,
+ LabelIDs: opts.LabelIDs,
}
if len(repoIDs) > 0 {
userIssueStatsOpts.UserRepoIDs = repoIDs
@@ -599,6 +600,7 @@ func Issues(ctx *context.Context) {
IsPull: isPullList,
IsClosed: isShowClosed,
IssueIDs: issueIDsFromSearch,
+ LabelIDs: opts.LabelIDs,
}
if len(repoIDs) > 0 {
statsOpts.RepoIDs = repoIDs
@@ -621,6 +623,7 @@ func Issues(ctx *context.Context) {
IsPull: isPullList,
IsClosed: isShowClosed,
IssueIDs: issueIDsFromSearch,
+ LabelIDs: opts.LabelIDs,
})
if err != nil {
ctx.ServerError("GetUserIssueStats All", err)
@@ -672,6 +675,7 @@ func Issues(ctx *context.Context) {
ctx.Data["RepoIDs"] = repoIDs
ctx.Data["IsShowClosed"] = isShowClosed
ctx.Data["TotalIssueCount"] = totalIssues
+ ctx.Data["SelectLabels"] = selectLabels
if isShowClosed {
ctx.Data["State"] = "closed"