From 30b17ff6c92df07922f875071e864cf688902293 Mon Sep 17 00:00:00 2001 From: Sebastian Molle Date: Sat, 28 Apr 2018 22:17:56 +0200 Subject: Fix Wekan import / Export for ChecklistItems --- models/export.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'models/export.js') 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) { -- cgit v1.2.3-1-g7c22