better fix for kanban recurring task not updating without copier

This commit is contained in:
Biagio00 2025-10-10 21:17:41 +02:00
parent 5ace321b98
commit 3a77b29816
1 changed files with 2 additions and 7 deletions

View File

@ -23,7 +23,6 @@ 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"
)
@ -158,13 +157,9 @@ func (b *TaskBucket) Update(s *xorm.Session, a web.Auth) (err error) {
doneChanged = true
task.Done = true
if task.isRepeating() {
oldTask := &Task{}
err = copier.Copy(oldTask, task)
if err != nil {
return err
}
oldTask := *task
oldTask.Done = false
updateDone(oldTask, task)
updateDone(&oldTask, task)
updateBucket = false
b.BucketID = oldTaskBucket.BucketID
}