mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
- Fix checklists items migration error "title is required"
Thanks to xet7 ! Closes #1576
This commit is contained in:
parent
7cc930f6b9
commit
8d5cbf1e6c
1 changed files with 1 additions and 1 deletions
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue