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) diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 1f9bbd86aa..3f7b2dc78f 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -1,11 +1,4 @@