summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-04-18 17:27:15 +0300
committerLauri Ojansivu <x@xet7.org>2018-04-18 17:27:15 +0300
commit8d5cbf1e6c2b6d467fe1c0708cd794fd11b98a2e (patch)
treecf0e503785ebbb989508e0b4f1ed37cde6040459
parent7cc930f6b90ca227e6c1481672bf345e7dc8d215 (diff)
downloadwekan-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.js2
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 },