From 68ab6d2e75f6fac85c784359e6ee2b528e231339 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 20 Apr 2020 23:08:38 +0200 Subject: [PATCH] Fix moving tasks back into the empty (ID: 0) bucket --- pkg/models/tasks.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/models/tasks.go b/pkg/models/tasks.go index 0495c408492..2f607630221 100644 --- a/pkg/models/tasks.go +++ b/pkg/models/tasks.go @@ -664,10 +664,15 @@ func (t *Task) Update() (err error) { if t.HexColor == "" { ot.HexColor = "" } - // Percent DOnw + // Percent Done if t.PercentDone == 0 { ot.PercentDone = 0 } + // Bucket ID + // Yes it is possible to move a task back into the empty bucket + if t.BucketID == 0 { + ot.BucketID = 0 + } _, err = x.ID(t.ID). Cols("text",