summaryrefslogtreecommitdiffstats
path: root/models/issues/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues/issue.go')
-rw-r--r--models/issues/issue.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/issues/issue.go b/models/issues/issue.go
index fbbc4828a2..1e969790d7 100644
--- a/models/issues/issue.go
+++ b/models/issues/issue.go
@@ -268,6 +268,9 @@ func (issue *Issue) loadCommentsByType(ctx context.Context, tp CommentType) (err
IssueID: issue.ID,
Type: tp,
})
+ for _, comment := range issue.Comments {
+ comment.Issue = issue
+ }
return err
}