summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 17:06:22 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 17:06:22 +0200
commit99d38f2d61527f599f3246ea5f02ec482841ab0e (patch)
treeedc21d55950558e99b85e8fefdc20e1d2384aca1 /models
parent80e06b8ffc7b9440b9e46ba43200a91c1b617cb0 (diff)
downloadwekan-99d38f2d61527f599f3246ea5f02ec482841ab0e.tar.gz
wekan-99d38f2d61527f599f3246ea5f02ec482841ab0e.tar.bz2
wekan-99d38f2d61527f599f3246ea5f02ec482841ab0e.zip
Fixed card move to top/bottom
Diffstat (limited to 'models')
-rw-r--r--models/lists.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/models/lists.js b/models/lists.js
index 9bcb9ba1..b99fe8f5 100644
--- a/models/lists.js
+++ b/models/lists.js
@@ -86,6 +86,17 @@ Lists.helpers({
{ sort: ['sort'] });
},
+ cardsUnfiltered(swimlaneId) {
+ const selector = {
+ listId: this._id,
+ archived: false,
+ };
+ if (swimlaneId)
+ selector.swimlaneId = swimlaneId;
+ return Cards.find(selector,
+ { sort: ['sort'] });
+ },
+
allCards() {
return Cards.find({ listId: this._id });
},