Skip to content

Moving Cards is not saved #609

Open
Open
@Berational91

Description

@Berational91

Describe the bug
If you have more than one board only movements of tasks in the first board is saved, when you're moving with drag&drop. On the Second board you can drag&drop, but after refresh the cards are in the old positions. The only way to move tasks in the second board is to edit the card and choose the column you want.

I've looked in the Debugger and you get this error, when you move the cards.
image

The reason for this is, that the ids of the colums are incremental and the increment is shared across boards.
image
Here you can see how the code is trying to get the column-object:

  • It get's the colId (which is only in the first board in the range of [0,ColumnCount-1])
  • tries to get column object from array, which expects an index in the range of [0,ColumnCount-1]
  • The problem: Since the Id's are incremental across all boards, the ids on the second board are not starting at 0, so you are out of the index of the array and the const column is undefined.

To Reproduce
Steps to reproduce the behavior:

  1. Create two boards, with some columns
  2. Move Tasks in first Board, reload page (will work)
  3. Move Tasks in second Board, reload page (will not work)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions