diff options
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r-- | models/issue_comment.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 03096414ee..0e40e442b6 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -559,7 +559,7 @@ func sendCreateCommentAction(e *xorm.Session, opts *CreateCommentOptions, commen case CommentTypeCode: if comment.ReviewID != 0 { if comment.Review == nil { - if err := comment.LoadReview(); err != nil { + if err := comment.loadReview(e); err != nil { return err } } @@ -709,7 +709,7 @@ func createDeadlineComment(e *xorm.Session, doer *User, issue *Issue, newDeadlin content = newDeadlineUnix.Format("2006-01-02") + "|" + issue.DeadlineUnix.Format("2006-01-02") } - if err := issue.LoadRepo(); err != nil { + if err := issue.loadRepo(e); err != nil { return nil, err } |