summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2018-07-26 08:45:44 +0200
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2018-10-23 18:48:05 +0200
commitdfdba25ea0b9c3bcca81a9c8ba6a3e9ed7f4eec7 (patch)
treeb7b72cf322d41bd5b9d82b1064d4800f4a767925 /models/cards.js
parentf61942e5cb672d3e0fd4df6c5ff9b3f15f7cb778 (diff)
downloadwekan-dfdba25ea0b9c3bcca81a9c8ba6a3e9ed7f4eec7.tar.gz
wekan-dfdba25ea0b9c3bcca81a9c8ba6a3e9ed7f4eec7.tar.bz2
wekan-dfdba25ea0b9c3bcca81a9c8ba6a3e9ed7f4eec7.zip
api: add the ability to change the Swimlane of a card
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index e7649657..9bb67f41 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1519,6 +1519,11 @@ if (Meteor.isServer) {
Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
{$set: {members: newmembers}});
}
+ if (req.body.hasOwnProperty('swimlaneId')) {
+ const newParamSwimlaneId = req.body.swimlaneId;
+ Cards.direct.update({_id: paramCardId, listId: paramListId, boardId: paramBoardId, archived: false},
+ {$set: {swimlaneId: newParamSwimlaneId}});
+ }
JsonRoutes.sendResult(res, {
code: 200,
data: {