mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -561,7 +561,7 @@ func GetLabels(repoId int64) ([]*Label, error) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// UpdateLabel updates label information.
 | 
					// UpdateLabel updates label information.
 | 
				
			||||||
func UpdateLabel(l *Label) error {
 | 
					func UpdateLabel(l *Label) error {
 | 
				
			||||||
	_, err := x.Id(l.Id).Update(l)
 | 
						_, err := x.Id(l.Id).AllCols().Update(l)
 | 
				
			||||||
	return err
 | 
						return err
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user