Fix Wekan import / Export for ChecklistItems

This commit is contained in:
Sebastian Molle 2018-04-28 22:17:56 +02:00
parent 1f42aac19f
commit 30b17ff6c9
2 changed files with 40 additions and 21 deletions

View file

@ -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) {