diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2018-10-23 18:00:56 +0200 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2018-10-23 18:02:15 +0200 |
commit | 24f66c9f8873e56dcd3a0a176b3fcbbdc6e5fae7 (patch) | |
tree | 6e2e539d8a201a7ae6d03e61802a6ecb23f13304 /models | |
parent | ccf66905e721afcb97c044ad67db883eb5ffa5d7 (diff) | |
download | wekan-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
Diffstat (limited to 'models')
-rw-r--r-- | models/export.js | 2 |
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: { |