fix(label): ignore existing ID during creation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
020fea686d
commit
e698ac5a34
@ -51,7 +51,7 @@ type Label struct {
|
||||
}
|
||||
|
||||
// TableName makes a pretty table name
|
||||
func (Label) TableName() string {
|
||||
func (*Label) TableName() string {
|
||||
return "labels"
|
||||
}
|
||||
|
||||
@ -73,6 +73,7 @@ func (l *Label) Create(s *xorm.Session, a web.Auth) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
l.ID = 0
|
||||
l.HexColor = utils.NormalizeHex(l.HexColor)
|
||||
l.CreatedBy = u
|
||||
l.CreatedByID = u.ID
|
||||
|
Loading…
x
Reference in New Issue
Block a user