Fixed some rules

This commit is contained in:
Angelo Gallarello 2018-09-21 14:22:00 +02:00
parent 254c7fe951
commit 37a53e7466
3 changed files with 8 additions and 8 deletions

View file

@ -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});