fix(views): update done status of recurring tasks
This commit is contained in:
parent
62ff05695f
commit
e7d6ee2392
@ -920,9 +920,6 @@ func (t *Task) Update(s *xorm.Session, a web.Auth) (err error) {
|
|||||||
// Old task has the stored reminders
|
// Old task has the stored reminders
|
||||||
ot.Reminders = reminders
|
ot.Reminders = reminders
|
||||||
|
|
||||||
// When a repeating task is marked as done, we update all deadlines and reminders and set it as undone
|
|
||||||
updateDone(&ot, t)
|
|
||||||
|
|
||||||
// Update the assignees
|
// Update the assignees
|
||||||
if err := ot.updateTaskAssignees(s, t.Assignees, a); err != nil {
|
if err := ot.updateTaskAssignees(s, t.Assignees, a); err != nil {
|
||||||
return err
|
return err
|
||||||
@ -997,6 +994,9 @@ func (t *Task) Update(s *xorm.Session, a web.Auth) (err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// When a repeating task is marked as done, we update all deadlines and reminders and set it as undone
|
||||||
|
updateDone(&ot, t)
|
||||||
|
|
||||||
// If a task attachment is being set as cover image, check if the attachment actually belongs to the task
|
// If a task attachment is being set as cover image, check if the attachment actually belongs to the task
|
||||||
if t.CoverImageAttachmentID != 0 {
|
if t.CoverImageAttachmentID != 0 {
|
||||||
is, err := s.Exist(&TaskAttachment{
|
is, err := s.Exist(&TaskAttachment{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user