From 623a2d41cc866d31e6348c58cccf336b67a4b2c7 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 8 Nov 2024 10:21:13 +0800 Subject: Refactor issue page info (#32445) Fix a longstanding TODO since 2021 (#14826) / 2018 (#2531) --- routers/web/repo/issue.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routers') diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 1ee6e98afb..c4fc535446 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -1443,11 +1443,11 @@ func ViewIssue(ctx *context.Context) { } if issue.IsPull && !ctx.Repo.CanRead(unit.TypeIssues) { - ctx.Data["IssueType"] = "pulls" + ctx.Data["IssueDependencySearchType"] = "pulls" } else if !issue.IsPull && !ctx.Repo.CanRead(unit.TypePullRequests) { - ctx.Data["IssueType"] = "issues" + ctx.Data["IssueDependencySearchType"] = "issues" } else { - ctx.Data["IssueType"] = "all" + ctx.Data["IssueDependencySearchType"] = "all" } ctx.Data["IsProjectsEnabled"] = ctx.Repo.CanRead(unit.TypeProjects) -- cgit v1.2.3