Browse Source

Merge pull request #4192 from mfilser/move_cards_to_top_ignores_the_current_filter

Move cards to top/bottom ignores the current filter if active
Lauri Ojansivu 3 years ago
parent
commit
b988ef430c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/components/cards/cardDetails.js

+ 2 - 2
client/components/cards/cardDetails.js

@@ -658,7 +658,7 @@ Template.cardDetailsActionsPopup.events({
     event.preventDefault();
     const minOrder = _.min(
       this.list()
-        .cards(this.swimlaneId)
+        .cardsUnfiltered(this.swimlaneId)
         .map((c) => c.sort),
     );
     this.move(this.boardId, this.swimlaneId, this.listId, minOrder - 1);
@@ -668,7 +668,7 @@ Template.cardDetailsActionsPopup.events({
     event.preventDefault();
     const maxOrder = _.max(
       this.list()
-        .cards(this.swimlaneId)
+        .cardsUnfiltered(this.swimlaneId)
         .map((c) => c.sort),
     );
     this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);