forked from vikunja/vikunja
fix(caldav): do not update dates of tasks when repositioning them
When a task is updated, the position of the tasks of the whole project/bucket are updated. This leads to column "updated" of model Task to be updated quite often. However, that column is used for the ETag field of CALDAV. Thus, changing a task marks all the other tasks as updated, which prevents clients from synchronizing their edited tasks.
This commit is contained in:
parent
f065dcf4ad
commit
4f55099896
|
@ -1083,6 +1083,7 @@ func recalculateTaskKanbanPositions(s *xorm.Session, bucketID int64) (err error)
|
|||
|
||||
_, err = s.Cols("kanban_position").
|
||||
Where("id = ?", task.ID).
|
||||
NoAutoTime().
|
||||
Update(&Task{KanbanPosition: currentPosition})
|
||||
if err != nil {
|
||||
return
|
||||
|
@ -1111,6 +1112,7 @@ func recalculateTaskPositions(s *xorm.Session, projectID int64) (err error) {
|
|||
|
||||
_, err = s.Cols("position").
|
||||
Where("id = ?", task.ID).
|
||||
NoAutoTime().
|
||||
Update(&Task{Position: currentPosition})
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue