2
0
Эх сурвалжийг харах

Merge pull request #2508 from road42/bug/card_move_to_top_bottom_fix

Inferface: Can move cardToTop/Bottom. Fixes #2289
Lauri Ojansivu 6 жил өмнө
parent
commit
47a7097044

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

@@ -345,12 +345,12 @@ Template.cardDetailsActionsPopup.events({
   'click .js-move-card-to-top' (evt) {
   'click .js-move-card-to-top' (evt) {
     evt.preventDefault();
     evt.preventDefault();
     const minOrder = _.min(this.list().cards(this.swimlaneId).map((c) => c.sort));
     const minOrder = _.min(this.list().cards(this.swimlaneId).map((c) => c.sort));
-    this.move(this.swimlaneId, this.listId, minOrder - 1);
+    this.move(this.boardId, this.swimlaneId, this.listId, minOrder - 1);
   },
   },
   'click .js-move-card-to-bottom' (evt) {
   'click .js-move-card-to-bottom' (evt) {
     evt.preventDefault();
     evt.preventDefault();
     const maxOrder = _.max(this.list().cards(this.swimlaneId).map((c) => c.sort));
     const maxOrder = _.max(this.list().cards(this.swimlaneId).map((c) => c.sort));
-    this.move(this.swimlaneId, this.listId, maxOrder + 1);
+    this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
   },
   },
   'click .js-archive' (evt) {
   'click .js-archive' (evt) {
     evt.preventDefault();
     evt.preventDefault();