summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2017-11-14 03:03:29 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2017-11-14 03:03:29 +0100
commit5a37ba0d9f504a601b9a0e8942a669c22784b4d8 (patch)
tree0da34961d455a3ade8d93ea3b7606a7f1420fd55
parent59f4daf91eedd0d5c4ff0ed3f271da8259c2ca9f (diff)
downloadwekan-5a37ba0d9f504a601b9a0e8942a669c22784b4d8.tar.gz
wekan-5a37ba0d9f504a601b9a0e8942a669c22784b4d8.tar.bz2
wekan-5a37ba0d9f504a601b9a0e8942a669c22784b4d8.zip
Move cards cross boards
-rw-r--r--client/components/cards/cardDetails.jade2
-rw-r--r--models/cards.js6
2 files changed, 6 insertions, 2 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index 677f62c7..ed1df0a8 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -131,7 +131,7 @@ template(name="cardDetailsActionsPopup")
li: a.js-more {{_ 'cardMorePopup-title'}}
template(name="moveCardPopup")
- +boardLists
+ +boardsAndLists
template(name="copyCardPopup")
label(for='copy-card-title') {{_ 'title'}}:
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;
}