summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-05-24 11:04:31 +0300
committerLauri Ojansivu <x@xet7.org>2018-05-24 11:04:31 +0300
commita69997d31e4d73a671cd3d30afc3b7f9e179ef2c (patch)
treebfb75f515ca09fe54a52677c1e1d5c6cdccb0bd4 /models/cards.js
parente5c6da5a3919158d8164ae1e0b4a8567da71249d (diff)
parent3bcd578fcbf4b852ee34d3d33c43e3097ab45313 (diff)
downloadwekan-a69997d31e4d73a671cd3d30afc3b7f9e179ef2c.tar.gz
wekan-a69997d31e4d73a671cd3d30afc3b7f9e179ef2c.tar.bz2
wekan-a69997d31e4d73a671cd3d30afc3b7f9e179ef2c.zip
Merge remote-tracking branch 'upstream/devel' into devel
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index c77cd682..6a33fa1a 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -220,6 +220,7 @@ Cards.helpers({
}).fetch();
// match right definition to each field
+ if (!this.customFields) return [];
return this.customFields.map((customField) => {
return {
_id: customField._id,