1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 02:08:36 +00:00

BugFix: updateLabel can updated not allowed fields #11242 (#11242)

This commit is contained in:
6543
2020-04-29 01:28:56 +02:00
committed by GitHub
parent 4563eb873d
commit 6b6f20b6d4
3 changed files with 16 additions and 9 deletions

View File

@@ -609,7 +609,7 @@ func (issue *Issue) changeStatus(e *xorm.Session, doer *User, isClosed, isMergeP
return nil, err
}
for idx := range issue.Labels {
if err = updateLabel(e, issue.Labels[idx]); err != nil {
if err = updateLabelCols(e, issue.Labels[idx], "num_issues", "num_closed_issue"); err != nil {
return nil, err
}
}