summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-05-18 16:22:53 +0300
committerLauri Ojansivu <x@xet7.org>2018-05-18 16:22:53 +0300
commit50f751e0a9f8214d690f6fd39136d09a46a8e69a (patch)
tree3a0e58883030abbfa8eb454d181356a8be299d79 /models/boards.js
parent61b240d126bcce7adcdb303c5b01a202dc7fa395 (diff)
parent1984a6b1c80dbd8b4eff89aa92913f943bacc63b (diff)
downloadwekan-50f751e0a9f8214d690f6fd39136d09a46a8e69a.tar.gz
wekan-50f751e0a9f8214d690f6fd39136d09a46a8e69a.tar.bz2
wekan-50f751e0a9f8214d690f6fd39136d09a46a8e69a.zip
Merge branch 'devel' into greenkeeper/initial
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index c863c5ce..44ce0b62 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -249,6 +249,10 @@ Boards.helpers({
return `board-color-${this.color}`;
},
+ customFields() {
+ return CustomFields.find({ boardId: this._id }, { sort: { name: 1 } });
+ },
+
// XXX currently mutations return no value so we have an issue when using addLabel in import
// XXX waiting on https://github.com/mquandalle/meteor-collection-mutations/issues/1 to remove...
pushLabel(name, color) {