From a97ce76f1fc20954c8edb3905a9d799138ef67cc Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 3 May 2020 22:25:48 +0200 Subject: [PATCH] Fix bucket ID being reset with no need to do so --- pkg/models/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/tasks.go b/pkg/models/tasks.go index 98ffdf2ff2..e7e153c3fe 100644 --- a/pkg/models/tasks.go +++ b/pkg/models/tasks.go @@ -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 ot.ListID != t.ListID { + if t.ListID != 0 && ot.ListID != t.ListID { b, err := getDefaultBucket(t.ListID) if err != nil { return err