diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-04-18 17:27:15 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-04-18 17:27:15 +0300 |
commit | 8d5cbf1e6c2b6d467fe1c0708cd794fd11b98a2e (patch) | |
tree | cf0e503785ebbb989508e0b4f1ed37cde6040459 | |
parent | 7cc930f6b90ca227e6c1481672bf345e7dc8d215 (diff) | |
download | wekan-8d5cbf1e6c2b6d467fe1c0708cd794fd11b98a2e.tar.gz wekan-8d5cbf1e6c2b6d467fe1c0708cd794fd11b98a2e.tar.bz2 wekan-8d5cbf1e6c2b6d467fe1c0708cd794fd11b98a2e.zip |
- Fix checklists items migration error "title is required"
Thanks to xet7 !
Closes #1576
-rw-r--r-- | server/migrations.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/migrations.js b/server/migrations.js index ea13f6b4..684a8bbe 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -140,7 +140,7 @@ Migrations.add('add-sort-checklists', () => { noValidate ); } - checklist.items.forEach(function(item, index) { + checklist.items.find().forEach((item, index) => { if (!item.hasOwnProperty('sort')) { Checklists.direct.update( { _id: checklist._id, 'items._id': item._id }, |