diff options
author | Raphael Randschau <nicolai86@me.com> | 2015-02-20 07:52:56 +0100 |
---|---|---|
committer | Raphael Randschau <nicolai86@me.com> | 2015-02-21 09:37:48 +0100 |
commit | 4f567edc6edbe8f43e6acd54bc3fe4e579b2389a (patch) | |
tree | 254aeef07e325f853d93d757a0db92f24db4cb18 | |
parent | 8f1d2d9f240b0ef62df13b8c90d199fcf6069b34 (diff) | |
download | gitea-4f567edc6edbe8f43e6acd54bc3fe4e579b2389a.tar.gz gitea-4f567edc6edbe8f43e6acd54bc3fe4e579b2389a.zip |
Fix #933
Not sure why, but xorm ignores the num_issues and num_closed_issues
columns when updating, even though the values changed.
Listing them explicitly fixes the issue with the wrong issue counts
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index d9a24063c2..226ca3ca57 100644 --- a/models/issue.go +++ b/models/issue.go @@ -561,7 +561,7 @@ func GetLabels(repoId int64) ([]*Label, error) { // UpdateLabel updates label information. func UpdateLabel(l *Label) error { - _, err := x.Id(l.Id).Update(l) + _, err := x.Id(l.Id).AllCols().Update(l) return err } |