diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-09-09 21:17:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-09 21:17:26 +0300 |
commit | 1c49469b3308de0c5f876cdb3034951474cf6874 (patch) | |
tree | a6435cfae507db615dca9dec181cf017af954ed3 | |
parent | 2ef8803dfd37ff204e541a8237a69741b5945eab (diff) | |
parent | d18cd59c0566d31bb6769ec9b53ee70f67208167 (diff) | |
download | wekan-1c49469b3308de0c5f876cdb3034951474cf6874.tar.gz wekan-1c49469b3308de0c5f876cdb3034951474cf6874.tar.bz2 wekan-1c49469b3308de0c5f876cdb3034951474cf6874.zip |
Merge pull request #1886 from ymeramees/devel
Fix cards export and add customFields export
-rw-r--r-- | models/export.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/export.js b/models/export.js index ed4c52d9..93f16e54 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 = []; |