diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-16 00:16:58 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-04-16 00:19:03 -0300 |
commit | 09bc8ac44c767291a1a3f4c31346ec1d1276625a (patch) | |
tree | fb53f538cfe623e528f6cddb583e2429022a70d1 | |
parent | eae4bb2d372c683c4abf7f2f3bee91783e9e8111 (diff) | |
download | wekan-09bc8ac44c767291a1a3f4c31346ec1d1276625a.tar.gz wekan-09bc8ac44c767291a1a3f4c31346ec1d1276625a.tar.bz2 wekan-09bc8ac44c767291a1a3f4c31346ec1d1276625a.zip |
Fix #1561 Filter checklist items
-rw-r--r-- | models/checklists.js | 4 |
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({ |