Fix moving the done bucket around

This commit is contained in:
kolaente 2021-07-29 17:32:33 +02:00
parent ea921f5350
commit e600f61e06
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

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