From 24f66c9f8873e56dcd3a0a176b3fcbbdc6e5fae7 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Tue, 23 Oct 2018 18:00:56 +0200 Subject: 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 --- models/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: { -- cgit v1.2.3-1-g7c22