Fix not moving its bucket when moving a task between lists
This commit is contained in:
parent
f0ac6e89be
commit
83cf6e191c
1 changed files with 9 additions and 0 deletions
|
@ -642,6 +642,15 @@ func (t *Task) Update() (err error) {
|
|||
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
|
||||
//
|
||||
// Maybe FIXME:
|
||||
|
|
Loading…
Reference in a new issue