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
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

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 ot.ListID != t.ListID {
if t.ListID != 0 && ot.ListID != t.ListID {
b, err := getDefaultBucket(t.ListID)
if err != nil {
return err