diff options
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index b5553b7c82..0989e3e195 100644 --- a/models/issue.go +++ b/models/issue.go @@ -174,7 +174,10 @@ func (issue *Issue) loadAttributes(e Engine) (err error) { } if issue.Comments == nil { - issue.Comments, err = getCommentsByIssueID(e, issue.ID) + issue.Comments, err = findComments(e, FindCommentsOptions{ + IssueID: issue.ID, + Type: CommentTypeUnknown, + }) if err != nil { return fmt.Errorf("getCommentsByIssueID [%d]: %v", issue.ID, err) } |