Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 125e0960eb Bring a card's labels along when it moves or is copied to another board.
Labels belong to a board, so a card moved or copied to another board has
its labels mapped by name, and a label the destination board did not have
was dropped. Now a missing named label is created on the destination board,
with its colour, when the person moving or copying the card is an admin of
that board. Creating labels is admin-only there, and a move must not do
what that user could not do directly, so for anybody else such a label is
still dropped. Unnamed labels are never created or matched, as they cannot
be told apart. Copy and move share the rule in
models/lib/crossBoardLabels.js.

tests/crossBoardLabels.test.cjs covers admins, members, unnamed and duplicate
labels; the cross-board move Playwright case checks a label that only the
source board had.

Thanks to d3dbit and xet7 !

Fixes #1759.
2026-10-08 12:01:22 +03:00