mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Merge pull request #2502 from road42/bug/rule_action_card_move_fix
Fixed bug (rule doesn't move card to top/bottom) #2501
This commit is contained in:
commit
8bfd94474a
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ RulesHelper = {
|
|||
listId = list._id;
|
||||
}
|
||||
const minOrder = _.min(list.cardsUnfiltered(card.swimlaneId).map((c) => c.sort));
|
||||
card.move(card.swimlaneId, listId, minOrder - 1);
|
||||
card.move(boardId, card.swimlaneId, listId, minOrder - 1);
|
||||
}
|
||||
if(action.actionType === 'moveCardToBottom'){
|
||||
let listId;
|
||||
|
@ -64,7 +64,7 @@ RulesHelper = {
|
|||
listId = list._id;
|
||||
}
|
||||
const maxOrder = _.max(list.cardsUnfiltered(card.swimlaneId).map((c) => c.sort));
|
||||
card.move(card.swimlaneId, listId, maxOrder + 1);
|
||||
card.move(boardId, card.swimlaneId, listId, maxOrder + 1);
|
||||
}
|
||||
if(action.actionType === 'sendEmail'){
|
||||
const to = action.emailTo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue