diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-21 14:22:00 +0200 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-21 14:22:00 +0200 |
commit | 37a53e7466107d229a67a4c2efc4b25708bbe93d (patch) | |
tree | d017d73aa17b3665435c313c7a08c733ade6a7cc /server/rulesHelper.js | |
parent | 254c7fe95183bb6ba787cfca6bfd5255a8fea42e (diff) | |
download | wekan-37a53e7466107d229a67a4c2efc4b25708bbe93d.tar.gz wekan-37a53e7466107d229a67a4c2efc4b25708bbe93d.tar.bz2 wekan-37a53e7466107d229a67a4c2efc4b25708bbe93d.zip |
Fixed some rules
Diffstat (limited to 'server/rulesHelper.js')
-rw-r--r-- | server/rulesHelper.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/rulesHelper.js b/server/rulesHelper.js index e7e19b96..175af953 100644 --- a/server/rulesHelper.js +++ b/server/rulesHelper.js @@ -36,8 +36,8 @@ RulesHelper = { if(action.actionType === 'moveCardToTop'){ let listId; let list; - if(activity.listTitle === '*'){ - listId = card.swimlaneId; + if(action.listTitle === '*'){ + listId = card.listId; list = card.list(); }else{ list = Lists.findOne({title: action.listTitle, boardId }); @@ -49,8 +49,8 @@ RulesHelper = { if(action.actionType === 'moveCardToBottom'){ let listId; let list; - if(activity.listTitle === '*'){ - listId = card.swimlaneId; + if(action.listTitle === '*'){ + listId = card.listId; list = card.list(); }else{ list = Lists.findOne({title: action.listTitle, boardId}); |