summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-01-28 00:02:35 +0200
committerLauri Ojansivu <x@xet7.org>2018-01-28 00:02:35 +0200
commit6aca70f0d11cd93355f65356c5550e7071f42aaa (patch)
tree62f9fb26fb52ae9f71c1f09d37af9058fa00ed75 /models/cards.js
parent963e3193451327cec89da2abc1f4aee7ee308f08 (diff)
parent081c1fdf835c6f1d2030b3b9e23229378d4f8cce (diff)
downloadwekan-6aca70f0d11cd93355f65356c5550e7071f42aaa.tar.gz
wekan-6aca70f0d11cd93355f65356c5550e7071f42aaa.tar.bz2
wekan-6aca70f0d11cd93355f65356c5550e7071f42aaa.zip
Merge branch 'devel'
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js
index 8676dfdc..d175a430 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -18,6 +18,9 @@ Cards.attachSchema(new SimpleSchema({
listId: {
type: String,
},
+ swimlaneId: {
+ type: String,
+ },
// The system could work without this `boardId` information (we could deduce
// the board identifier from the card), but it would make the system more
// difficult to manage and less efficient.
@@ -216,9 +219,10 @@ Cards.mutations({
return {$set: {description}};
},
- move(listId, sortIndex) {
+ move(swimlaneId, listId, sortIndex) {
const list = Lists.findOne(listId);
const mutatedFields = {
+ swimlaneId,
listId,
boardId: list.boardId,
};