From: Raphael Randschau Date: Fri, 20 Feb 2015 06:52:56 +0000 (+0100) Subject: Fix #933 X-Git-Tag: v0.9.99~1450^2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f567edc6edbe8f43e6acd54bc3fe4e579b2389a;p=gitea.git 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 --- 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 }