- Fix card copy & move between boards with customFields

- Fix card copy & move between boards with labels with same name
- Fix activities for labels when copying and moving card
- Fix activities for customFields when copying and moving card
This commit is contained in:
Andrés Manelli 2019-03-16 22:43:47 +01:00
parent 4cd0d1c397
commit d01fccd949
9 changed files with 179 additions and 34 deletions

View file

@ -466,7 +466,7 @@ Boards.helpers({
},
customFields() {
return CustomFields.find({ boardId: this._id }, { sort: { name: 1 } });
return CustomFields.find({ boardIds: {$in: [this._id]} }, { sort: { name: 1 } });
},
// XXX currently mutations return no value so we have an issue when using addLabel in import