Skip to content

Commit d0a3438

Browse files
committed
Fix Assign appropriate value to ctx.Data[IsShowClosed] according to the Open/Closed status
1 parent 2fc347b commit d0a3438

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/web/repo/issue.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption opt
467467
ctx.Data["AssigneeID"] = assigneeID
468468
ctx.Data["PosterID"] = posterID
469469
ctx.Data["Keyword"] = keyword
470+
if isShowClosed.Has() {
471+
ctx.Data["IsShowClosed"] = isShowClosed.Value()
472+
}
470473
switch {
471474
case isShowClosed.Value():
472475
ctx.Data["State"] = "closed"

0 commit comments

Comments
 (0)