diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-02-20 15:46:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 09:46:46 +0200 |
commit | efbd7ca39bde69ff84d4b309bee99edfe2977521 (patch) | |
tree | f3da0e97115639dcb0ff5ed8a08b3e258219a31f /models | |
parent | 5dc634daced07a586a1aff91f22157d84817acea (diff) | |
download | gitea-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.go | 4 |
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 { |