diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/pull.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/pull.go b/models/pull.go index b25c52571d..174faee97a 100644 --- a/models/pull.go +++ b/models/pull.go @@ -152,6 +152,9 @@ func (pr *PullRequest) loadIssue(e Engine) (err error) { } pr.Issue, err = getIssueByID(e, pr.IssueID) + if err == nil { + pr.Issue.PullRequest = pr + } return err } |