1
0

fix(kanban): move repeating task back to old bucket when moved to the done bucket

This commit is contained in:
kolaente
2024-07-12 13:44:45 +02:00
parent 51040cf1af
commit 323ecdaab6
3 changed files with 8 additions and 4 deletions

View File

@ -116,11 +116,12 @@ func (b *TaskBucket) Update(s *xorm.Session, a web.Auth) (err error) {
if view.DoneBucketID == b.BucketID {
doneChanged = true
task.Done = true
if task.RepeatAfter > 0 {
if task.isRepeating() {
oldTask := task
task.Done = false
updateDone(&oldTask, &task)
updateBucket = false
b.BucketID = oldTaskBucket.BucketID
}
}
@ -146,7 +147,6 @@ func (b *TaskBucket) Update(s *xorm.Session, a web.Auth) (err error) {
if err != nil {
return err
}
}
if updateBucket {