mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00: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 {
|
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)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user