From 3d7bab4497a2eff5a3c36ce55b6e9ac34cd4b77e Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 9 Apr 2026 11:58:46 +0200 Subject: [PATCH] fix(kanban): route repeating tasks to default bucket when dropped on done (#2573) --- pkg/models/kanban_task_bucket.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/models/kanban_task_bucket.go b/pkg/models/kanban_task_bucket.go index 35c623a0f..c8794201e 100644 --- a/pkg/models/kanban_task_bucket.go +++ b/pkg/models/kanban_task_bucket.go @@ -145,8 +145,13 @@ func updateTaskBucket(s *xorm.Session, a web.Auth, b *TaskBucket) (err error) { oldTask := *task oldTask.Done = false updateDone(&oldTask, task) - updateBucket = false - b.BucketID = oldTaskBucket.BucketID + // A repeating task doesn't stay in the done bucket; route + // it back to the view's default bucket so the user sees + // the next iteration waiting in the "To-Do" column. + b.BucketID, err = getDefaultBucketID(s, view) + if err != nil { + return err + } } }