summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2019-02-28 20:43:45 +0100
committerAndrés Manelli <andresmanelli@gmail.com>2019-02-28 20:46:50 +0100
commit49229e1723de14cdc66dc6480624bba426d35e36 (patch)
tree82ea39fdeed83e007e2624f6782c3affca8b2127
parentd5bc66c9a49a16aa1c0361e3ff46453b1bcb348b (diff)
downloadwekan-49229e1723de14cdc66dc6480624bba426d35e36.tar.gz
wekan-49229e1723de14cdc66dc6480624bba426d35e36.tar.bz2
wekan-49229e1723de14cdc66dc6480624bba426d35e36.zip
Fix filter in swimlanes view
-rw-r--r--models/swimlanes.js10
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();
});
}