#4223's Bigboard view stacks every board a user belongs to on one page.
List-level dragging was deliberately scoped to stay within one board
(connectWithSelector() in swimlanes.js), but card-level dragging between
lists was never scoped that way - the cards sortable's
connectWith: '.js-minicards:not(.js-list-full)' in list.js already
connects across every board shown in Bigboard.
The drop handler still resolved the destination board from
Utils.getCurrentBoard() - the board the page happens to be routed to -
instead of from the list the card was actually dropped into. On a
normal single-board page those are the same board, so it went
unnoticed; in Bigboard, dropping a card into a list belonging to a
different board than the route's currentBoard silently moved the card
onto the wrong board.
Resolve the destination boardId from the dropped-into list's own
boardId (listData.boardId), exactly as the analogous list-to-swimlane
move in swimlanes.js already does with list.boardId, and pass it - not
currentBoard._id - to every card.move() call the stop handler makes.
Card.move() already fully supports a boardId change (label/member/
custom-field remapping, dependency cleanup), and the server-side
denyCrossBoardMove already authorizes only when the caller can write
to the destination board, so no model or permission change was needed.
Add tests/listCardCrossBoardMove.test.cjs, a source-level regression
test that pins the fix (targetBoardId/targetBoard resolution, both
card.move() calls using it) and negatively asserts card.move() is
never called with currentBoard._id directly, plus that list-level drag
scoping (connectWithSelector) stays untouched.
Thanks to lauripiispanen and xet7 !
Closes#3298,