summaryrefslogtreecommitdiffstats
path: root/models/swimlanes.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2019-02-24 11:54:52 +0100
committerAndrés Manelli <andresmanelli@gmail.com>2019-02-24 11:54:52 +0100
commit775476f97c1dda92e856ca4650e6003ea1487d2b (patch)
tree500b3865d93b1dd5e9f2aaf60cced1a77dcf70a5 /models/swimlanes.js
parenteb62c9ce6ad0fa0d5de7889ec087db8cdc579339 (diff)
downloadwekan-775476f97c1dda92e856ca4650e6003ea1487d2b.tar.gz
wekan-775476f97c1dda92e856ca4650e6003ea1487d2b.tar.bz2
wekan-775476f97c1dda92e856ca4650e6003ea1487d2b.zip
Fix miniscreen render
Diffstat (limited to 'models/swimlanes.js')
-rw-r--r--models/swimlanes.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/models/swimlanes.js b/models/swimlanes.js
index 6f679a8d..d3548329 100644
--- a/models/swimlanes.js
+++ b/models/swimlanes.js
@@ -112,9 +112,9 @@ Swimlanes.helpers({
archived: false,
}).forEach((list) => {
list.type = 'list';
- list.swimlaneId = _id;
+ list.swimlaneId = '';
list.boardId = this.boardId;
- list.copy();
+ list.copy(_id);
});
},
@@ -127,7 +127,8 @@ Swimlanes.helpers({
lists() {
return Lists.find(Filter.mongoSelector({
- swimlaneId: this._id,
+ boardId: this.boardId,
+ swimlaneId: {$in: [this._id, '']},
archived: false,
}), { sort: ['sort'] });
},