From d5d5fb19253e5cf85ae82063eb544c6d6874c2fe Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 24 Sep 2024 09:26:10 +0800 Subject: [PATCH] Fix Bug in Issue/pulls list (#32081) (#32115) --- routers/web/repo/issue.go | 1 + templates/repo/issue/filter_actions.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 849fc83fb0..47333396c7 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -461,6 +461,7 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption opt ctx.Data["AssigneeID"] = assigneeID ctx.Data["PosterID"] = posterID ctx.Data["Keyword"] = keyword + ctx.Data["IsShowClosed"] = isShowClosed switch { case isShowClosed.Value(): ctx.Data["State"] = "closed" diff --git a/templates/repo/issue/filter_actions.tmpl b/templates/repo/issue/filter_actions.tmpl index f23ca36d78..56ae7dc411 100644 --- a/templates/repo/issue/filter_actions.tmpl +++ b/templates/repo/issue/filter_actions.tmpl @@ -1,9 +1,9 @@