summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Randschau <nicolai86@me.com>2015-02-20 07:52:56 +0100
committerRaphael Randschau <nicolai86@me.com>2015-02-21 09:37:48 +0100
commit4f567edc6edbe8f43e6acd54bc3fe4e579b2389a (patch)
tree254aeef07e325f853d93d757a0db92f24db4cb18
parent8f1d2d9f240b0ef62df13b8c90d199fcf6069b34 (diff)
downloadgitea-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.go2
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
}