1
0

Fix moving repeating tasks to the done bucket

This commit is contained in:
kolaente
2021-04-15 16:36:24 +02:00
parent 2547de59ae
commit 6e5a9868f5
2 changed files with 25 additions and 3 deletions

View File

@ -954,14 +954,14 @@ func (t *Task) Update(s *xorm.Session, a web.Auth) (err error) {
"repeat_mode",
}
// When a repeating task is marked as done, we update all deadlines and reminders and set it as undone
updateDone(&ot, t)
err = setTaskBucket(s, t, &ot, t.BucketID != ot.BucketID)
if err != nil {
return err
}
// When a repeating task is marked as done, we update all deadlines and reminders and set it as undone
updateDone(&ot, t)
// If the task is being moved between lists, make sure to move the bucket + index as well
if t.ListID != 0 && ot.ListID != t.ListID {
latestTask := &Task{}