Skip to content

Commit f2fc87b

Browse files
committed
Load PR attachments before assigning value
1 parent 13e8d84 commit f2fc87b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/web/repo/pull_review.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ func renderConversation(ctx *context.Context, comment *issues_model.Comment, ori
194194
ctx.ServerError("CanMarkConversation", err)
195195
return
196196
}
197-
ctx.Data["Issue"] = comment.Issue
198-
ctx.Data["IsIssue"] = true
199-
ctx.Data["Comments"] = comment.Issue.Comments
200197
if err = comment.Issue.LoadPullRequest(ctx); err != nil {
201198
ctx.ServerError("comment.Issue.LoadPullRequest", err)
202199
return
203200
}
201+
ctx.Data["Issue"] = comment.Issue
202+
ctx.Data["IsIssue"] = true
203+
ctx.Data["Comments"] = comment.Issue.Comments
204204
pullHeadCommitID, err := ctx.Repo.GitRepo.GetRefCommitID(comment.Issue.PullRequest.GetGitRefName())
205205
if err != nil {
206206
ctx.ServerError("GetRefCommitID", err)

0 commit comments

Comments
 (0)