summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-02-20 15:46:46 +0800
committerGitHub <noreply@github.com>2020-02-20 09:46:46 +0200
commitefbd7ca39bde69ff84d4b309bee99edfe2977521 (patch)
treef3da0e97115639dcb0ff5ed8a08b3e258219a31f /models
parent5dc634daced07a586a1aff91f22157d84817acea (diff)
downloadgitea-efbd7ca39bde69ff84d4b309bee99edfe2977521.tar.gz
gitea-efbd7ca39bde69ff84d4b309bee99edfe2977521.zip
Fix wrong num closed issues on repository when close issue via commit (#10364)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models')
-rw-r--r--models/issue.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index afd110e06d..a3c81b6702 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -676,6 +676,10 @@ func (issue *Issue) changeStatus(e *xorm.Session, doer *User, isClosed bool) (*C
return nil, err
}
+ if err := issue.updateClosedNum(e); err != nil {
+ return nil, err
+ }
+
// New action comment
cmtType := CommentTypeClose
if !issue.IsClosed {