summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-03-21 00:40:46 +0200
committerLauri Ojansivu <x@xet7.org>2019-03-21 00:40:46 +0200
commit365e8455e6a71f67552aca801e6a2a6b87a81a26 (patch)
treec758dfae262f6f42415ef17a52b82e0ee009e266 /models/boards.js
parent393684fb1939b8ab0e4498d182956c3e34fdd455 (diff)
parentda3edb35ccf8a29bd6568b8b0445fdc1d6113b19 (diff)
downloadwekan-365e8455e6a71f67552aca801e6a2a6b87a81a26.tar.gz
wekan-365e8455e6a71f67552aca801e6a2a6b87a81a26.tar.bz2
wekan-365e8455e6a71f67552aca801e6a2a6b87a81a26.zip
Merge branch 'edge' into meteor-1.8
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/models/boards.js b/models/boards.js
index 9a71ede8..36651d54 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -466,7 +466,7 @@ Boards.helpers({
},
customFields() {
- return CustomFields.find({ boardId: this._id }, { sort: { name: 1 } });
+ return CustomFields.find({ boardIds: {$in: [this._id]} }, { sort: { name: 1 } });
},
// XXX currently mutations return no value so we have an issue when using addLabel in import
@@ -605,9 +605,7 @@ Boards.helpers({
title: TAPi18n.__('queue'),
boardId: this._id,
});
- Boards.update(this._id, {$set: {
- subtasksDefaultListId: this.subtasksDefaultListId,
- }});
+ this.setSubtasksDefaultListId(this.subtasksDefaultListId);
}
return this.subtasksDefaultListId;
},