summaryrefslogtreecommitdiffstats
path: root/services/issue/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/issue/status.go')
-rw-r--r--services/issue/status.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/issue/status.go b/services/issue/status.go
index 0df08eafd1..b01ce4bbb8 100644
--- a/services/issue/status.go
+++ b/services/issue/status.go
@@ -11,11 +11,11 @@ import (
// ChangeStatus changes issue status to open or closed.
func ChangeStatus(issue *models.Issue, doer *models.User, isClosed bool) (err error) {
- err = issue.ChangeStatus(doer, isClosed)
+ comment, err := issue.ChangeStatus(doer, isClosed)
if err != nil {
return
}
- notification.NotifyIssueChangeStatus(doer, issue, isClosed)
+ notification.NotifyIssueChangeStatus(doer, issue, comment, isClosed)
return nil
}