Files
vikunja/pkg/models
maggch 3f4bdf2a25 fix: use local variable for position to avoid cross-view contamination
When creating a task, calculateNewPositionForTask is called in a loop
for each view. Previously it wrote the calculated position back to the
shared *Task struct (t.Position), causing subsequent views to skip
their own position calculation and reuse the first view's value.
This resulted in new tasks appearing in the middle of other views
instead of at the top.

Use a local variable instead of mutating t.Position so each view
calculates its position independently.

Ref: https://github.com/go-vikunja/vikunja/issues/2329

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-02 10:52:36 +08:00
..
2026-02-25 12:15:28 +01:00
2026-02-25 12:15:28 +01:00