Skip to content

Template error listing pull requests #1542

@cez81

Description

@cez81
  • Gitea version (or commit ref): 1.1.0+139-gb7da5a6
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
template: repo/issue/list:12:135: executing "repo/issue/list" at <.PullRequestCtx.Base...>: can't evaluate field Link in type *models.Repository

Description

Trying to list pull requests for repo gives me a template error. Repo is a fork of a mirror repo.
I have tried to reproduce on https://try.gitea.io but can't get same result.

Just looking at the error message it looks like .PullRequestCtx.BaseRepo.Link should be .PullRequestCtx.BaseRepo.RepoLink at https://github.com/go-gitea/gitea/blob/master/templates/repo/issue/list.tmpl#L12

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions