summaryrefslogtreecommitdiffstats
path: root/models/export.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-07-05 22:48:43 +0300
committerLauri Ojansivu <x@xet7.org>2018-07-05 22:48:43 +0300
commit06423164fb063a5e359bbb5866959f87110bf7c2 (patch)
tree592198eac47b5a8e3792c6660faf6230416dcaee /models/export.js
parent515c9be051272b91563c6de516424a246503853a (diff)
parent3eba6ef2856946925795f9cd370583be892344dd (diff)
downloadwekan-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.js2
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