summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorNunes Nelson <nunes.nelson4@gmail.com>2018-11-05 21:46:57 +0100
committerNunes Nelson <nunes.nelson4@gmail.com>2018-11-05 21:46:57 +0100
commita82aa87850b9bfbab503b1f07dd6b7542a20c2f4 (patch)
tree5959625927966f28b16babd097d993a102a64f7e /client/components/lists
parent6f2275e8cb286cdf9dab3fee7f19b134eab70ca6 (diff)
downloadwekan-a82aa87850b9bfbab503b1f07dd6b7542a20c2f4.tar.gz
wekan-a82aa87850b9bfbab503b1f07dd6b7542a20c2f4.tar.bz2
wekan-a82aa87850b9bfbab503b1f07dd6b7542a20c2f4.zip
custom fields upgrade
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listBody.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index d99d9dc8..66b50123 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -59,6 +59,8 @@ BlazeComponent.extendComponent({
swimlaneId,
type: 'cardType-card',
});
+
+
// In case the filter is active we need to add the newly inserted card in
// the list of exceptions -- cards that are not filtered. Otherwise the
// card will disappear instantly.
@@ -152,6 +154,14 @@ BlazeComponent.extendComponent({
this.labels = new ReactiveVar([]);
this.members = new ReactiveVar([]);
this.customFields = new ReactiveVar([]);
+
+ const currentBoardId = Session.get('currentBoard');
+ arr = []
+ _.forEach(Boards.findOne(currentBoardId).customFields().fetch(), function(field){
+ if(field.automaticallyOnCard)
+ arr.push({_id: field._id, value: null,})
+ })
+ this.customFields.set(arr);
},
reset() {