From 65e7b8fbd1d7aefab5ccd659fee6e84d72f8125a Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 9 Dec 2024 23:35:48 +0800 Subject: [PATCH] fix var name --- routers/web/repo/issue_list.go | 1 + templates/repo/issue/filter_list.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/web/repo/issue_list.go b/routers/web/repo/issue_list.go index 9e095dfed35e0..6451f7ac7651e 100644 --- a/routers/web/repo/issue_list.go +++ b/routers/web/repo/issue_list.go @@ -798,6 +798,7 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption opt ctx.Data["MilestoneID"] = milestoneID ctx.Data["ProjectID"] = projectID ctx.Data["AssigneeID"] = assigneeID + ctx.Data["PosterUserID"] = posterUserID ctx.Data["PosterUsername"] = posterUsername ctx.Data["Keyword"] = keyword ctx.Data["IsShowClosed"] = isShowClosed diff --git a/templates/repo/issue/filter_list.tmpl b/templates/repo/issue/filter_list.tmpl index e98ca1d811f00..c689ac19a8cd9 100644 --- a/templates/repo/issue/filter_list.tmpl +++ b/templates/repo/issue/filter_list.tmpl @@ -84,7 +84,7 @@ "QueryParamKey" "poster" "QueryLink" $queryLink "UserSearchUrl" (Iif .Milestone (print $.RepoLink "/issues/posters") (print $.Link "/posters")) - "SelectedUserId" $.PosterID + "SelectedUserId" $.PosterUserID "TextFilterTitle" (ctx.Locale.Tr "repo.issues.filter_poster") }}