summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/cards.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js
index 5de17c6f..b6397c9e 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -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;
}