diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-09-24 21:22:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 21:22:39 +0800 |
commit | 29dda47cbbb6da148dbd3412463dc979deffcbfa (patch) | |
tree | fc627eb70613381641235684b342e072d1aeb0eb /models/issue.go | |
parent | 7cccada51eb925e7acfc90aae26661afd847d8f4 (diff) | |
download | gitea-29dda47cbbb6da148dbd3412463dc979deffcbfa.tar.gz gitea-29dda47cbbb6da148dbd3412463dc979deffcbfa.zip |
Fix label count (#8267)
* fix label count
* fix vendor
* fix import order
* update xorm to fix bug
* fix tests
* fix mssql bug
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/models/issue.go b/models/issue.go index c4b15e9ddf..77712c0fec 100644 --- a/models/issue.go +++ b/models/issue.go @@ -760,11 +760,6 @@ func (issue *Issue) changeStatus(e *xorm.Session, doer *User, isClosed bool) (er return err } for idx := range issue.Labels { - if issue.IsClosed { - issue.Labels[idx].NumClosedIssues++ - } else { - issue.Labels[idx].NumClosedIssues-- - } if err = updateLabel(e, issue.Labels[idx]); err != nil { return err } |