Fix bucket ID being reset with no need to do so

This commit is contained in:
kolaente 2020-05-03 22:25:48 +02:00
parent 83cf6e191c
commit a97ce76f1f
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -643,7 +643,7 @@ func (t *Task) Update() (err error) {
} }
// If the task is being moved between lists, make sure to move the bucket as well // If the task is being moved between lists, make sure to move the bucket as well
if ot.ListID != t.ListID { if t.ListID != 0 && ot.ListID != t.ListID {
b, err := getDefaultBucket(t.ListID) b, err := getDefaultBucket(t.ListID)
if err != nil { if err != nil {
return err return err