diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-03-01 14:41:09 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-03-01 14:41:09 +0200 |
commit | d6259836e06b00f6e1e0e3c11802565b90ffddb7 (patch) | |
tree | a651c78710c98e5eebf73d58520f12ac169c1273 | |
parent | ef246cfef3706872075f07f9dc531a929e64566f (diff) | |
download | wekan-d6259836e06b00f6e1e0e3c11802565b90ffddb7.tar.gz wekan-d6259836e06b00f6e1e0e3c11802565b90ffddb7.tar.bz2 wekan-d6259836e06b00f6e1e0e3c11802565b90ffddb7.zip |
- [Add Filter fix back](https://github.com/wekan/wekan/issues/2213),
because there was no bug in filter fix.
Thanks to xet7 !
Closes #2213,
related #2209
-rw-r--r-- | models/swimlanes.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/models/swimlanes.js b/models/swimlanes.js index 1b18ba5d..9da4afb5 100644 --- a/models/swimlanes.js +++ b/models/swimlanes.js @@ -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(); }); } |