mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 09:54:24 +01:00
Set PR for issue when load attributes for PRs (#22766)
A missing patch for #22650.
This commit is contained in:
parent
c18a62279a
commit
d74d16a4b1
|
@ -187,6 +187,7 @@ func (prs PullRequestList) loadAttributes(ctx context.Context) error {
|
|||
if pr.Issue == nil {
|
||||
return fmt.Errorf("issues and prs may be not in sync: cannot find issue %v for pr %v: %w", pr.IssueID, pr.ID, util.ErrNotExist)
|
||||
}
|
||||
pr.Issue.PullRequest = pr
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue