fix: reset id before creating
(cherry picked from commit c252c8f0cd1c09a74b564e67a855cca4cd436585)
This commit is contained in:
@ -306,6 +306,7 @@ func (b *Bucket) Create(s *xorm.Session, a web.Auth) (err error) {
|
||||
}
|
||||
b.CreatedByID = b.CreatedBy.ID
|
||||
|
||||
b.ID = 0
|
||||
_, err = s.Insert(b)
|
||||
if err != nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user