Fix not moving its bucket when moving a task between lists

This commit is contained in:
kolaente 2020-05-03 21:33:59 +02:00
parent f0ac6e89be
commit 83cf6e191c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -642,6 +642,15 @@ func (t *Task) Update() (err error) {
return return
} }
// If the task is being moved between lists, make sure to move the bucket as well
if ot.ListID != t.ListID {
b, err := getDefaultBucket(t.ListID)
if err != nil {
return err
}
t.BucketID = b.ID
}
// Update the labels // Update the labels
// //
// Maybe FIXME: // Maybe FIXME: