diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-07-05 22:48:43 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-07-05 22:48:43 +0300 |
commit | 06423164fb063a5e359bbb5866959f87110bf7c2 (patch) | |
tree | 592198eac47b5a8e3792c6660faf6230416dcaee /models/export.js | |
parent | 515c9be051272b91563c6de516424a246503853a (diff) | |
parent | 3eba6ef2856946925795f9cd370583be892344dd (diff) | |
download | wekan-06423164fb063a5e359bbb5866959f87110bf7c2.tar.gz wekan-06423164fb063a5e359bbb5866959f87110bf7c2.tar.bz2 wekan-06423164fb063a5e359bbb5866959f87110bf7c2.zip |
Merge branch 'nested-tasks' of https://github.com/TNick/wekan into TNick-nested-tasks
Diffstat (limited to 'models/export.js')
-rw-r--r-- | models/export.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/export.js b/models/export.js index aff66801..8c4c29d4 100644 --- a/models/export.js +++ b/models/export.js @@ -58,9 +58,11 @@ class Exporter { result.activities = Activities.find(byBoard, noBoardId).fetch(); result.checklists = []; result.checklistItems = []; + result.subtaskItems = []; result.cards.forEach((card) => { result.checklists.push(...Checklists.find({ cardId: card._id }).fetch()); result.checklistItems.push(...ChecklistItems.find({ cardId: card._id }).fetch()); + result.subtaskItems.push(...Cards.find({ parentid: card._id }).fetch()); }); // [Old] for attachments we only export IDs and absolute url to original doc |