From 5ace321b987956572150032aba0e6c266b26e6d5 Mon Sep 17 00:00:00 2001 From: Biagio00 Date: Fri, 10 Oct 2025 20:39:17 +0200 Subject: [PATCH] fix: repeating tasks don't update dates when moving in done bucket --- pkg/models/kanban_task_bucket.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/models/kanban_task_bucket.go b/pkg/models/kanban_task_bucket.go index bd89da1d9..f88adb437 100644 --- a/pkg/models/kanban_task_bucket.go +++ b/pkg/models/kanban_task_bucket.go @@ -23,6 +23,7 @@ import ( "code.vikunja.io/api/pkg/events" "code.vikunja.io/api/pkg/user" "code.vikunja.io/api/pkg/web" + "github.com/jinzhu/copier" "xorm.io/xorm" ) @@ -157,7 +158,11 @@ func (b *TaskBucket) Update(s *xorm.Session, a web.Auth) (err error) { doneChanged = true task.Done = true if task.isRepeating() { - oldTask := task + oldTask := &Task{} + err = copier.Copy(oldTask, task) + if err != nil { + return err + } oldTask.Done = false updateDone(oldTask, task) updateBucket = false