mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
custom fields upgrade
This commit is contained in:
parent
6f2275e8cb
commit
a82aa87850
6 changed files with 51 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue