summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-05-18 16:19:48 +0300
committerLauri Ojansivu <x@xet7.org>2018-05-18 16:19:48 +0300
commit1984a6b1c80dbd8b4eff89aa92913f943bacc63b (patch)
tree5ab5ade69721a03896ba1bfa6e19879dffee59b7 /models/boards.js
parentc0c7b269a794fb28ddf5ffc17744f6724041de96 (diff)
parent1d904adc610afa3106acc00886a0a848e26e1cb1 (diff)
downloadwekan-1984a6b1c80dbd8b4eff89aa92913f943bacc63b.tar.gz
wekan-1984a6b1c80dbd8b4eff89aa92913f943bacc63b.tar.bz2
wekan-1984a6b1c80dbd8b4eff89aa92913f943bacc63b.zip
Merge branch 'feuerball11-feature-custom-fields' into devel
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) {