diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-09-09 21:40:23 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-09-09 21:40:23 +0300 |
commit | 6eeb708e4d2eb82fe3b45aba20276be5c4ba0ed1 (patch) | |
tree | 48251272fb3669e5f13f7b72f917ffef15af0694 /models | |
parent | be9cf344627df6d3230e4b3be5218153eb94cbc0 (diff) | |
download | wekan-6eeb708e4d2eb82fe3b45aba20276be5c4ba0ed1.tar.gz wekan-6eeb708e4d2eb82fe3b45aba20276be5c4ba0ed1.tar.bz2 wekan-6eeb708e4d2eb82fe3b45aba20276be5c4ba0ed1.zip |
- Fix cards export and add customFields export.
Thanks to ymeramees !
Closes #1873,
related #1775
Diffstat (limited to 'models')
-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 = []; |