mirror of
https://github.com/wekan/wekan.git
synced 2026-02-18 22:18:07 +01:00
Fix Wekan import / Export for ChecklistItems
This commit is contained in:
parent
1f42aac19f
commit
30b17ff6c9
2 changed files with 40 additions and 21 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue