From 6eeb708e4d2eb82fe3b45aba20276be5c4ba0ed1 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 9 Sep 2018 21:40:23 +0300 Subject: [PATCH] - Fix cards export and add customFields export. Thanks to ymeramees ! Closes #1873, related #1775 --- models/export.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/export.js b/models/export.js index ed4c52d90..93f16e547 100644 --- a/models/export.js +++ b/models/export.js @@ -45,7 +45,7 @@ class Exporter { build() { const byBoard = { boardId: this._boardId }; - const byBoardNoLinked = { boardId: this._boardId, linkedId: null }; + const byBoardNoLinked = { boardId: this._boardId, linkedId: "" }; // we do not want to retrieve boardId in related elements const noBoardId = { fields: { boardId: 0 } }; const result = { @@ -55,6 +55,7 @@ class Exporter { result.lists = Lists.find(byBoard, noBoardId).fetch(); result.cards = Cards.find(byBoardNoLinked, noBoardId).fetch(); result.swimlanes = Swimlanes.find(byBoard, noBoardId).fetch(); + result.customFields = CustomFields.find(byBoard, noBoardId).fetch(); result.comments = CardComments.find(byBoard, noBoardId).fetch(); result.activities = Activities.find(byBoard, noBoardId).fetch(); result.checklists = [];