aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-09-24 21:22:39 +0800
committerGitHub <noreply@github.com>2019-09-24 21:22:39 +0800
commit29dda47cbbb6da148dbd3412463dc979deffcbfa (patch)
treefc627eb70613381641235684b342e072d1aeb0eb /models/issue.go
parent7cccada51eb925e7acfc90aae26661afd847d8f4 (diff)
downloadgitea-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.go5
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
}