fix(views): move all tasks to the default bucket when deleting a bucket
This commit is contained in:
parent
0f60a92873
commit
9cc273d9bd
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user