fix(task): do not update all project_view ids
All checks were successful
continuous-integration/drone/push Build is passing

Might fix https://community.vikunja.io/t/not-able-to-move-task-between-buckets-within-a-kanban-view-for-saved-filter/2882/6
This commit is contained in:
kolaente 2024-12-11 18:50:01 +01:00
parent a1cf2b8bc7
commit b3c93ae811
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -99,7 +99,7 @@ func (tp *TaskPosition) Update(s *xorm.Session, a web.Auth) (err error) {
}
_, err = s.
Where("task_id = ?", tp.TaskID).
Where("task_id = ? AND project_view_id = ?", tp.TaskID, tp.ProjectViewID).
Cols("project_view_id", "position").
Update(tp)
if err != nil {