summaryrefslogtreecommitdiffstats
path: root/models/export.js
diff options
context:
space:
mode:
authorSebastian Molle <sebastian.molle@smals.be>2018-04-28 22:17:56 +0200
committerSebastian Molle <sebastian.molle@smals.be>2018-04-28 22:17:56 +0200
commit30b17ff6c92df07922f875071e864cf688902293 (patch)
treebbfc3b185fb85e4c92b60c94bdda0f496478cf31 /models/export.js
parent1f42aac19f6e35ffe4eec582d6509ee8bf1eb151 (diff)
downloadwekan-30b17ff6c92df07922f875071e864cf688902293.tar.gz
wekan-30b17ff6c92df07922f875071e864cf688902293.tar.bz2
wekan-30b17ff6c92df07922f875071e864cf688902293.zip
Fix Wekan import / Export for ChecklistItems
Diffstat (limited to 'models/export.js')
-rw-r--r--models/export.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/export.js b/models/export.js
index c6632198..aff66801 100644
--- a/models/export.js
+++ b/models/export.js
@@ -57,9 +57,12 @@ class Exporter {
result.comments = CardComments.find(byBoard, noBoardId).fetch();
result.activities = Activities.find(byBoard, noBoardId).fetch();
result.checklists = [];
+ result.checklistItems = [];
result.cards.forEach((card) => {
result.checklists.push(...Checklists.find({ cardId: card._id }).fetch());
+ result.checklistItems.push(...ChecklistItems.find({ cardId: card._id }).fetch());
});
+
// [Old] for attachments we only export IDs and absolute url to original doc
// [New] Encode attachment to base64
const getBase64Data = function(doc, callback) {