mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 00:40:12 +01:00
ensure checklistItem titles are correct when migrating
This commit is contained in:
parent
f3aa524b77
commit
9a766c0f74
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ Migrations.add('add-checklist-items', () => {
|
||||||
// Create new items
|
// Create new items
|
||||||
_.sortBy(checklist.items, 'sort').forEach((item, index) => {
|
_.sortBy(checklist.items, 'sort').forEach((item, index) => {
|
||||||
ChecklistItems.direct.insert({
|
ChecklistItems.direct.insert({
|
||||||
title: checklist.title,
|
title: item.title,
|
||||||
sort: index,
|
sort: index,
|
||||||
isFinished: item.isFinished,
|
isFinished: item.isFinished,
|
||||||
checklistId: checklist._id,
|
checklistId: checklist._id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue