Fix moving the done bucket around

This commit is contained in:
kolaente 2021-07-29 17:32:33 +02:00
parent ea921f5350
commit e600f61e06
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -287,7 +287,7 @@ func (b *Bucket) Update(s *xorm.Session, a web.Auth) (err error) {
return err return err
} }
if doneBucket != nil && doneBucket.IsDoneBucket && b.IsDoneBucket { if doneBucket != nil && doneBucket.IsDoneBucket && b.IsDoneBucket && doneBucket.ID != b.ID {
return &ErrOnlyOneDoneBucketPerList{ return &ErrOnlyOneDoneBucketPerList{
BucketID: b.ID, BucketID: b.ID,
ListID: b.ListID, ListID: b.ListID,