summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-04-16 00:16:58 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-04-16 00:19:03 -0300
commit09bc8ac44c767291a1a3f4c31346ec1d1276625a (patch)
treefb53f538cfe623e528f6cddb583e2429022a70d1
parenteae4bb2d372c683c4abf7f2f3bee91783e9e8111 (diff)
downloadwekan-09bc8ac44c767291a1a3f4c31346ec1d1276625a.tar.gz
wekan-09bc8ac44c767291a1a3f4c31346ec1d1276625a.tar.bz2
wekan-09bc8ac44c767291a1a3f4c31346ec1d1276625a.zip
Fix #1561 Filter checklist items
-rw-r--r--models/checklists.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/checklists.js b/models/checklists.js
index e352f38d..c58453ef 100644
--- a/models/checklists.js
+++ b/models/checklists.js
@@ -34,9 +34,9 @@ Checklists.helpers({
return ChecklistItems.find({ checklistId: this._id }).count();
},
items() {
- return ChecklistItems.find(Filter.mongoSelector({
+ return ChecklistItems.find({
checklistId: this._id,
- }), { sort: ['sort'] });
+ }, { sort: ['sort'] });
},
finishedCount() {
return ChecklistItems.find({