Ver código fonte

Merge branch 'edge' into meteor-1.8

Lauri Ojansivu 6 anos atrás
pai
commit
2e1162ed73
5 arquivos alterados com 15 adições e 6 exclusões
  1. 9 0
      CHANGELOG.md
  2. 1 1
      Stackerfile.yml
  3. 1 1
      package.json
  4. 2 2
      sandstorm-pkgdef.capnp
  5. 2 2
      server/rulesHelper.js

+ 9 - 0
CHANGELOG.md

@@ -1,3 +1,12 @@
+# v2.85 2019-06-19 Wekan release
+
+This release fixes the following bugs:
+
+- [Fixed bug: rule doesn't move card to top/bottom](https://github.com/wekan/wekan/pull/2502).
+  Thanks to road42.
+
+Thanks to above GitHub users for their contributions and translators for their translations.
+
 # v2.84 2019-06-18 Wekan release
 # v2.84 2019-06-18 Wekan release
 
 
 This release fixes the following bugs:
 This release fixes the following bugs:

+ 1 - 1
Stackerfile.yml

@@ -1,5 +1,5 @@
 appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
 appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
-appVersion: "v2.84.0"
+appVersion: "v2.85.0"
 files:
 files:
   userUploads:
   userUploads:
     - README.md
     - README.md

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "wekan",
   "name": "wekan",
-  "version": "v2.84.0",
+  "version": "v2.85.0",
   "description": "Open-Source kanban",
   "description": "Open-Source kanban",
   "private": true,
   "private": true,
   "scripts": {
   "scripts": {

+ 2 - 2
sandstorm-pkgdef.capnp

@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
     appTitle = (defaultText = "Wekan"),
     appTitle = (defaultText = "Wekan"),
     # The name of the app as it is displayed to the user.
     # The name of the app as it is displayed to the user.
 
 
-    appVersion = 286,
+    appVersion = 287,
     # Increment this for every release.
     # Increment this for every release.
 
 
-    appMarketingVersion = (defaultText = "2.84.0~2019-06-18"),
+    appMarketingVersion = (defaultText = "2.85.0~2019-06-19"),
     # Human-readable presentation of the app version.
     # Human-readable presentation of the app version.
 
 
     minUpgradableAppVersion = 0,
     minUpgradableAppVersion = 0,

+ 2 - 2
server/rulesHelper.js

@@ -51,7 +51,7 @@ RulesHelper = {
         listId = list._id;
         listId = list._id;
       }
       }
       const minOrder = _.min(list.cardsUnfiltered(card.swimlaneId).map((c) => c.sort));
       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'){
     if(action.actionType === 'moveCardToBottom'){
       let listId;
       let listId;
@@ -64,7 +64,7 @@ RulesHelper = {
         listId = list._id;
         listId = list._id;
       }
       }
       const maxOrder = _.max(list.cardsUnfiltered(card.swimlaneId).map((c) => c.sort));
       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'){
     if(action.actionType === 'sendEmail'){
       const to = action.emailTo;
       const to = action.emailTo;