because there was no bug in filter fix.

Thanks to xet7 !

Closes #2213,
related #2209
This commit is contained in:
Lauri Ojansivu 2019-03-01 14:41:09 +02:00
parent ef246cfef3
commit d6259836e0

View file

@ -133,14 +133,14 @@ Swimlanes.helpers({
},
lists() {
return Lists.find(Filter.mongoSelector({
return Lists.find({
boardId: this.boardId,
swimlaneId: {$in: [this._id, '']},
archived: false,
}), { sort: ['sort'] });
}, { sort: ['sort'] });
},
allLists() {
myLists() {
return Lists.find({ swimlaneId: this._id });
},
@ -189,7 +189,7 @@ Swimlanes.mutations({
archive() {
if (this.isTemplateSwimlane()) {
this.lists().forEach((list) => {
this.myLists().forEach((list) => {
return list.archive();
});
}
@ -198,7 +198,7 @@ Swimlanes.mutations({
restore() {
if (this.isTemplateSwimlane()) {
this.allLists().forEach((list) => {
this.myLists().forEach((list) => {
return list.restore();
});
}