diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 1ee6e98afbd..c4fc5354469 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) diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 1f9bbd86aa4..3f7b2dc78f6 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -1,11 +1,4 @@