summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.js
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@supinfo.com>2018-11-09 14:12:17 +0100
committerguillaume <guillaume.cassou@supinfo.com>2018-11-09 14:12:17 +0100
commitcb091c8a54dc3b9b721a0474f4c821e0b451f3d6 (patch)
treeadb7bce896e2d4428b59a9d5a997b95a3d72361f /client/components/lists/listBody.js
parent3646a9c259634bbed03b71ead53338c3f290cf0b (diff)
parent043f9813ef269cfc784ddb75e10e2b875d621ff8 (diff)
downloadwekan-cb091c8a54dc3b9b721a0474f4c821e0b451f3d6.tar.gz
wekan-cb091c8a54dc3b9b721a0474f4c821e0b451f3d6.tar.bz2
wekan-cb091c8a54dc3b9b721a0474f4c821e0b451f3d6.zip
Merge https://github.com/wekan/wekan into devel
Diffstat (limited to 'client/components/lists/listBody.js')
-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..1001f3bc 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() {