mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move cards cross boards
This commit is contained in:
parent
59f4daf91e
commit
5a37ba0d9f
2 changed files with 6 additions and 2 deletions
|
|
@ -207,7 +207,11 @@ Cards.mutations({
|
|||
},
|
||||
|
||||
move(listId, sortIndex) {
|
||||
const mutatedFields = {listId};
|
||||
const list = Lists.findOne(listId);
|
||||
const mutatedFields = {
|
||||
listId,
|
||||
boardId: list.boardId,
|
||||
};
|
||||
if (sortIndex) {
|
||||
mutatedFields.sort = sortIndex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue