diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-11-20 17:46:34 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-11-20 17:46:34 +0200 |
commit | b592e8ad14ab5ae8de7605e5870a9fe703d15874 (patch) | |
tree | b76fe2df6f7d2641200089eeb56c6799113e5cdc /models | |
parent | dfd0b2194746208c85b16fd485e7ca6f0cc34b57 (diff) | |
parent | ce4f1589762e82dd9175444eeca4d6d0e2f79d1e (diff) | |
download | wekan-b592e8ad14ab5ae8de7605e5870a9fe703d15874.tar.gz wekan-b592e8ad14ab5ae8de7605e5870a9fe703d15874.tar.bz2 wekan-b592e8ad14ab5ae8de7605e5870a9fe703d15874.zip |
Merge branch 'feature/copy-move-cards-x-boards' of https://github.com/GhassenRjab/wekan into GhassenRjab-feature/copy-move-cards-x-boards
Diffstat (limited to 'models')
-rw-r--r-- | models/cards.js | 6 |
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; } |