summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2018-10-23 18:00:56 +0200
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2018-10-23 18:02:15 +0200
commit24f66c9f8873e56dcd3a0a176b3fcbbdc6e5fae7 (patch)
tree6e2e539d8a201a7ae6d03e61802a6ecb23f13304
parentccf66905e721afcb97c044ad67db883eb5ffa5d7 (diff)
downloadwekan-24f66c9f8873e56dcd3a0a176b3fcbbdc6e5fae7.tar.gz
wekan-24f66c9f8873e56dcd3a0a176b3fcbbdc6e5fae7.tar.bz2
wekan-24f66c9f8873e56dcd3a0a176b3fcbbdc6e5fae7.zip
fix cards export
6eeb708e4d2eb82f (Fix cards export and add customFields export.) is incomplete as it allows to export newer cards inserted in the db after the linkedId has been set, but not older cards present in an earlier version of wekan. Allow both null and empty value to be retrieved to match all cards. related #1873
-rw-r--r--models/export.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/export.js b/models/export.js
index 0911a631..62d2687a 100644
--- a/models/export.js
+++ b/models/export.js
@@ -48,7 +48,7 @@ class Exporter {
build() {
const byBoard = { boardId: this._boardId };
- const byBoardNoLinked = { boardId: this._boardId, linkedId: '' };
+ const byBoardNoLinked = { boardId: this._boardId, linkedId: {$in: ['', null] } };
// we do not want to retrieve boardId in related elements
const noBoardId = {
fields: {