fix(kanban): route repeating tasks to default bucket when dropped on done (#2573)
This commit is contained in:
parent
e37b54abca
commit
3d7bab4497
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue