summaryrefslogtreecommitdiffstats
path: root/models/export.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2019-03-08 23:39:33 +0100
committerAndrés Manelli <andresmanelli@gmail.com>2019-03-16 22:49:45 +0100
commit4cd0d1c3971f001eccf023bb84f1bee113fed215 (patch)
tree207684b92f9d07294a29b850d672b3f0cc1bae72 /models/export.js
parentff19d6744e3f4a944944185d41b944310f35fc36 (diff)
downloadwekan-4cd0d1c3971f001eccf023bb84f1bee113fed215.tar.gz
wekan-4cd0d1c3971f001eccf023bb84f1bee113fed215.tar.bz2
wekan-4cd0d1c3971f001eccf023bb84f1bee113fed215.zip
Migrate customFields
Diffstat (limited to 'models/export.js')
-rw-r--r--models/export.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/export.js b/models/export.js
index 76f2da06..f281b34a 100644
--- a/models/export.js
+++ b/models/export.js
@@ -75,7 +75,7 @@ class Exporter {
result.lists = Lists.find(byBoard, noBoardId).fetch();
result.cards = Cards.find(byBoardNoLinked, noBoardId).fetch();
result.swimlanes = Swimlanes.find(byBoard, noBoardId).fetch();
- result.customFields = CustomFields.find(byBoard, noBoardId).fetch();
+ result.customFields = CustomFields.find({boardIds: {$in: [this.boardId]}}, {fields: {boardId: 0}}).fetch();
result.comments = CardComments.find(byBoard, noBoardId).fetch();
result.activities = Activities.find(byBoard, noBoardId).fetch();
result.rules = Rules.find(byBoard, noBoardId).fetch();