From 745f39ed20169f56b99c0339f2043f8c4ed43873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Wed, 6 Mar 2019 20:54:35 +0100 Subject: Avoid setting same card as parentCard. Avoid listing templates board in copy/move/more menus --- client/components/cards/cardDetails.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 4df42586..9b47531f 100644 --- a/client/components/cards/cardDetails.js +++ b/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 []; } -- cgit v1.2.3-1-g7c22 From ddb24601876acd1d48fea27c5447aa7cbafd9ff5 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 6 Mar 2019 23:48:36 +0200 Subject: [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. Closes #2202 --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25691b9e..dfd803c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ +# Upcoming 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. -- cgit v1.2.3-1-g7c22 From 1089572d664757da70ed3db981b6c752646b3c90 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 7 Mar 2019 00:04:50 +0200 Subject: v2.41 --- CHANGELOG.md | 2 +- Stackerfile.yml | 2 +- package.json | 2 +- sandstorm-pkgdef.capnp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfd803c2..99f90dcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Upcoming Wekan release +# v2.41 2019-03-07 Wekan release This release fixes the following bugs: diff --git a/Stackerfile.yml b/Stackerfile.yml index eb492c54..82172dc1 100644 --- a/Stackerfile.yml +++ b/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 diff --git a/package.json b/package.json index 85684113..4cc319a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wekan", - "version": "v2.40.0", + "version": "v2.41.0", "description": "Open-Source kanban", "private": true, "scripts": { diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp index 302039ba..2ccffb09 100644 --- a/sandstorm-pkgdef.capnp +++ b/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, -- cgit v1.2.3-1-g7c22