summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/issue_comment.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 577de1d84d..651cbdfad1 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -708,6 +708,10 @@ 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 {
+ return nil, err
+ }
+
return createComment(e, &CreateCommentOptions{
Type: commentType,
Doer: doer,