summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorTony Tsang <tony@tcnhk.com>2014-10-14 16:46:25 +0800
committerTony Tsang <tony@tcnhk.com>2014-10-14 16:46:25 +0800
commit91127d9016a25ed708896ef40cdd31b1cf65ac2c (patch)
tree2fcb03cb3069b7e37d143d146aae982291527713 /models
parent4a8a70dde0f6fd7c5409766d30e6cc932b43b7c8 (diff)
downloadgitea-91127d9016a25ed708896ef40cdd31b1cf65ac2c.tar.gz
gitea-91127d9016a25ed708896ef40cdd31b1cf65ac2c.zip
Fixes #562
Diffstat (limited to 'models')
-rw-r--r--models/action.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index ef111e67a4..2fb0771071 100644
--- a/models/action.go
+++ b/models/action.go
@@ -153,7 +153,9 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com
if err = UpdateIssue(issue); err != nil {
return err
- }
+ } else if err = UpdateIssueUserPairsByStatus(issue.Id, issue.IsClosed); err != nil {
+ return err
+ }
if err = ChangeMilestoneIssueStats(issue); err != nil {
return err