fix(task): do not update all project_view ids
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:
parent
a1cf2b8bc7
commit
b3c93ae811
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue