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

Merge branch 'edge' into meteor-1.8

Lauri Ojansivu 6 жил өмнө
parent
commit
221831e4e5

+ 12 - 0
CHANGELOG.md

@@ -1,5 +1,17 @@
+# v2.41 2019-03-07 Wekan release
+
+This release fixes the following bugs:
+
+- [Fix: Card was selected as parent card (circular reference) and now board can be not opened anymore](https://github.com/wekan/wekan/issues/2202)
+  with [Avoid setting same card as parentCard. Avoid listing templates board in copy/move/more menus](https://github.com/wekan/wekan/commit/745f39ed20169f56b99c0339f2043f8c4ed43873).
+  Thanks to andresmanelli.
+
+Thanks to above GitHub users for their contributions, and translators for their translations.
+
 # v2.40 2019-03-06 Wekan release
 
+This release fixes the following bugs:
+
 - Part 2: [Fix](https://github.com/wekan/wekan/commit/e845fe3e7130d111be4c3a73e2551738c980ff7b)
   [manifest](https://github.com/wekan/wekan/issues/2168) and
   [icon](https://github.com/wekan/wekan/issues/1692) paths. Thanks to xet7.

+ 1 - 1
Stackerfile.yml

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

+ 9 - 1
client/components/cards/cardDetails.js

@@ -430,6 +430,7 @@ BlazeComponent.extendComponent({
     const boards = Boards.find({
       archived: false,
       'members.userId': Meteor.userId(),
+      _id: {$ne: Meteor.user().getTemplatesBoardId()},
     }, {
       sort: ['title'],
     });
@@ -589,6 +590,9 @@ BlazeComponent.extendComponent({
     const boards = Boards.find({
       archived: false,
       'members.userId': Meteor.userId(),
+      _id: {
+        $ne: Meteor.user().getTemplatesBoardId(),
+      },
     }, {
       sort: ['title'],
     });
@@ -596,8 +600,12 @@ BlazeComponent.extendComponent({
   },
 
   cards() {
+    const currentId = Session.get('currentCard');
     if (this.parentBoard) {
-      return this.parentBoard.cards();
+      return Cards.find({
+        boardId: this.parentBoard,
+        _id: {$ne: currentId},
+      });
     } else {
       return [];
     }

+ 1 - 1
package.json

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

+ 2 - 2
sandstorm-pkgdef.capnp

@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
     appTitle = (defaultText = "Wekan"),
     # The name of the app as it is displayed to the user.
 
-    appVersion = 242,
+    appVersion = 243,
     # Increment this for every release.
 
-    appMarketingVersion = (defaultText = "2.40.0~2019-03-06"),
+    appMarketingVersion = (defaultText = "2.41.0~2019-03-07"),
     # Human-readable presentation of the app version.
 
     minUpgradableAppVersion = 0,