diff options
author | Sebastian Molle <sebastian.molle@smals.be> | 2018-04-28 22:17:56 +0200 |
---|---|---|
committer | Sebastian Molle <sebastian.molle@smals.be> | 2018-04-28 22:17:56 +0200 |
commit | 30b17ff6c92df07922f875071e864cf688902293 (patch) | |
tree | bbfc3b185fb85e4c92b60c94bdda0f496478cf31 /models/export.js | |
parent | 1f42aac19f6e35ffe4eec582d6509ee8bf1eb151 (diff) | |
download | wekan-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.js | 3 |
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) { |