diff --git a/pkg/models/tasks.go b/pkg/models/tasks.go index 648792f1d..f264b0e1f 100644 --- a/pkg/models/tasks.go +++ b/pkg/models/tasks.go @@ -1382,7 +1382,7 @@ func (t *Task) updateSingleTask(s *xorm.Session, a web.Auth, fields []string) (e _, err = s.ID(t.ID). Cols(colsToUpdate...). - Update(ot) + Update(&ot) *t = ot if err != nil { return err