fix(views): move all tasks to the default bucket when deleting a bucket

This commit is contained in:
kolaente 2024-03-18 20:59:49 +01:00
parent 0f60a92873
commit 9cc273d9bd
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func (b *Bucket) Delete(s *xorm.Session, a web.Auth) (err error) {
_, err = s.
Where("bucket_id = ?", b.ID).
Cols("bucket_id").
Update(&Task{BucketID: defaultBucketID})
Update(&TaskBucket{BucketID: defaultBucketID})
if err != nil {
return
}