Another fix for checklists item migration error "title is required"

8d5cbf1e6c (commitcomment-29362180)

Thanks to oec !

Closes #1576
This commit is contained in:
Lauri Ojansivu 2018-06-14 19:03:44 +03:00
parent 23726136bd
commit 454aa05987

View file

@ -140,7 +140,7 @@ Migrations.add('add-sort-checklists', () => {
noValidate
);
}
checklist.items.find().forEach((item, index) => {
checklist.items.forEach((item, index) => {
if (!item.hasOwnProperty('sort')) {
Checklists.direct.update(
{ _id: checklist._id, 'items._id': item._id },